Minor cleanup:
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 25 Jul 2007 00:06:28 +0000 (00:06 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 25 Jul 2007 00:06:28 +0000 (00:06 +0000)
 - Split EH and debug infiormation
 - Make DwarfWriter more verbose in some cases

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40481 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp
lib/Target/X86/X86TargetAsmInfo.cpp

index e157e58bd4ceb09f8674805b2af018ad1cbb6702..9d54d42960cea2b536466bf67e73cb5be0fc8842 100644 (file)
@@ -1041,7 +1041,7 @@ public:
           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 {
index 4bb854efe95d03db0db45747eea779f7a38fc6b6..79df32b565f8716ddefe56b232113ff7ed46af5d 100644 (file)
@@ -110,8 +110,9 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
 
     // 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,\"\",@progbits";
     DwarfInfoSection =    "\t.section\t.debug_info,\"\",@progbits";
@@ -125,8 +126,10 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
     DwarfRangesSection =  "\t.section\t.debug_ranges,\"\",@progbits";
     DwarfMacInfoSection = "\t.section\t.debug_macinfo,\"\",@progbits";
 
+    // Exceptions handling
     if (!Subtarget->is64Bit())
       SupportsExceptionHandling = true;
+    AbsoluteEHSectionOffsets = false;
     DwarfEHFrameSection = "\t.section\t.eh_frame,\"aw\",@progbits";
     DwarfExceptionSection = "\t.section\t.gcc_except_table,\"a\",@progbits";
     break;