[llvm-commits] [llvm] r40481 - in /llvm/trunk/lib: CodeGen/DwarfWriter.cpp Target/X86/X86TargetAsmInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Tue Jul 24 17:06:28 PDT 2007
Author: asl
Date: Tue Jul 24 19:06:28 2007
New Revision: 40481
URL: http://llvm.org/viewvc/llvm-project?rev=40481&view=rev
Log:
Minor cleanup:
- Split EH and debug infiormation
- Make DwarfWriter more verbose in some cases
Modified:
llvm/trunk/lib/CodeGen/DwarfWriter.cpp
llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=40481&r1=40480&r2=40481&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Tue Jul 24 19:06:28 2007
@@ -1041,7 +1041,7 @@
Asm->EOL("Offset");
} else if (Reg < 64) {
Asm->EmitInt8(DW_CFA_offset + Reg);
- Asm->EOL("DW_CFA_offset + Reg");
+ Asm->EOL("DW_CFA_offset + Reg (" + utostr(Reg) + ")");
Asm->EmitULEB128Bytes(Offset);
Asm->EOL("Offset");
} else {
Modified: llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp?rev=40481&r1=40480&r2=40481&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp Tue Jul 24 19:06:28 2007
@@ -110,8 +110,9 @@
// Set up DWARF directives
HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
+
+ // Debug Information
AbsoluteDebugSectionOffsets = true;
- AbsoluteEHSectionOffsets = false;
SupportsDebugInformation = true;
DwarfAbbrevSection = "\t.section\t.debug_abbrev,\"\", at progbits";
DwarfInfoSection = "\t.section\t.debug_info,\"\", at progbits";
@@ -125,8 +126,10 @@
DwarfRangesSection = "\t.section\t.debug_ranges,\"\", at progbits";
DwarfMacInfoSection = "\t.section\t.debug_macinfo,\"\", at progbits";
+ // Exceptions handling
if (!Subtarget->is64Bit())
SupportsExceptionHandling = true;
+ AbsoluteEHSectionOffsets = false;
DwarfEHFrameSection = "\t.section\t.eh_frame,\"aw\", at progbits";
DwarfExceptionSection = "\t.section\t.gcc_except_table,\"a\", at progbits";
break;
More information about the llvm-commits
mailing list