diff options
author | Frederic Riss <friss@apple.com> | 2015-08-07 15:14:08 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2015-08-07 15:14:08 +0000 |
commit | a5ab8443c122b6e1832e7cf6fbc8d33b8e031038 (patch) | |
tree | 534acdfc009d7d508829494b48f48aef4ab4f479 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 01da42d8db3263ede2c10b466daed51f4b1d43e5 (diff) | |
download | bcm5719-llvm-a5ab8443c122b6e1832e7cf6fbc8d33b8e031038.tar.gz bcm5719-llvm-a5ab8443c122b6e1832e7cf6fbc8d33b8e031038.zip |
[MC/Dwarf] Allow to specify custom parameters for linetable emission.
NFC patch for current users, but llvm-dsymutil will use the new
functionality to adapt to the input linetable.
Based on a patch by Adrian Prantl.
llvm-svn: 244318
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index e731542d419..e09a90fbd0b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -33,6 +33,7 @@ #include "llvm/IR/Module.h" #include "llvm/IR/ValueHandle.h" #include "llvm/MC/MCAsmInfo.h" +#include "llvm/MC/MCDwarf.h" #include "llvm/MC/MCSection.h" #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCSymbol.h" @@ -1894,7 +1895,7 @@ void DwarfDebug::emitDebugLineDWO() { assert(useSplitDwarf() && "No split dwarf?"); Asm->OutStreamer->SwitchSection( Asm->getObjFileLowering().getDwarfLineDWOSection()); - SplitTypeUnitFileTable.Emit(*Asm->OutStreamer); + SplitTypeUnitFileTable.Emit(*Asm->OutStreamer, MCDwarfLineTableParams()); } // Emit the .debug_str.dwo section for separated dwarf. This contains the |