Fix DWARF debugging information on x86/Linux and (hopefully)
Mingw32/Cygwin targets. This fixes PR978
llvm-svn: 35000
diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp
index efc5484..da47749 100644
--- a/llvm/lib/Target/TargetAsmInfo.cpp
+++ b/llvm/lib/Target/TargetAsmInfo.cpp
@@ -69,11 +69,13 @@
UsedDirective(0),
WeakRefDirective(0),
HiddenDirective("\t.hidden\t"),
+ AbsoluteSectionOffsets(false),
HasLEB128(false),
HasDotLoc(false),
HasDotFile(false),
SupportsExceptionHandling(false),
DwarfRequiresFrameSection(true),
+ DwarfSectionOffsetDirective(0),
DwarfAbbrevSection(".debug_abbrev"),
DwarfInfoSection(".debug_info"),
DwarfLineSection(".debug_line"),
@@ -106,3 +108,4 @@
// Multiply by the worst-case length for each instruction.
return NumInsts * MaxInstLength;
}
+