diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-06-18 23:31:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-06-18 23:31:37 +0000 |
| commit | 09081b25a56dfffd371651bd00dee529cdfa922e (patch) | |
| tree | 746d7304946efa415b12c0f594917e99ae84c229 /llvm/lib/CodeGen/AsmPrinter | |
| parent | 4c6a36718270c93a60dbccbf92472c9bcdc1d2d2 (diff) | |
| download | bcm5719-llvm-09081b25a56dfffd371651bd00dee529cdfa922e.tar.gz bcm5719-llvm-09081b25a56dfffd371651bd00dee529cdfa922e.zip | |
simplify macro debug info directive handling.
llvm-svn: 73736
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 114fb960fa1..9d340e3aee5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1995,8 +1995,8 @@ void DwarfDebug::EmitInitial() { Asm->SwitchToDataSection(TAI->getDwarfARangesSection()); EmitLabel("section_aranges", 0); - if (TAI->doesSupportMacInfoSection()) { - Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection()); + if (const char *LineInfoDirective = TAI->getDwarfMacroInfoSection()) { + Asm->SwitchToDataSection(LineInfoDirective); EmitLabel("section_macinfo", 0); } @@ -2542,9 +2542,9 @@ void DwarfDebug::EmitDebugRanges() { /// EmitDebugMacInfo - Emit visible names into a debug macinfo section. /// void DwarfDebug::EmitDebugMacInfo() { - if (TAI->doesSupportMacInfoSection()) { + if (const char *LineInfoDirective = TAI->getDwarfMacroInfoSection()) { // Start the dwarf macinfo section. - Asm->SwitchToDataSection(TAI->getDwarfMacInfoSection()); + Asm->SwitchToDataSection(LineInfoDirective); Asm->EOL(); } } |

