diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-01-30 01:39:17 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-01-30 01:39:17 +0000 |
commit | f166f6c8d0393eeb10c5531ddf3e1bdcc9aa1f92 (patch) | |
tree | 2026e16ddc831f0077907af71def06280c1e18e4 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | 3aa05e40cfa7256e367bb46437ce5488842298f5 (diff) | |
download | bcm5719-llvm-f166f6c8d0393eeb10c5531ddf3e1bdcc9aa1f92.tar.gz bcm5719-llvm-f166f6c8d0393eeb10c5531ddf3e1bdcc9aa1f92.zip |
Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple'
This incorporates a couple of fixes reviewed at http://llvm-reviews.chandlerc.com/D2651
llvm-svn: 200440
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index 796d03bfeb3..a160f298e18 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -150,6 +150,8 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) { LSDASection = Ctx->getMachOSection("__TEXT", "__gcc_except_tab", 0, SectionKind::getReadOnlyWithRel()); + COFFDebugSymbolsSection = 0; + if (T.isMacOSX() && !T.isMacOSXVersionLT(10, 6)) { CompactUnwindSection = Ctx->getMachOSection("__LD", "__compact_unwind", @@ -458,6 +460,8 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { ELF::SHF_ALLOC, SectionKind::getReadOnly()); + COFFDebugSymbolsSection = 0; + // Debug Info Sections. DwarfAbbrevSection = Ctx->getELFSection(".debug_abbrev", ELF::SHT_PROGBITS, 0, |