summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-23 07:10:56 +0000
committerEric Christopher <echristo@apple.com>2012-08-23 07:10:56 +0000
commit360f0062bc83610e944123ee30eb057c325dfbf7 (patch)
tree3bf427cc7d359f3eacab4955c6408cb29e69ea27 /lib/CodeGen/AsmPrinter
parentccffa8494315d2cd0fee036e9fdbd945f9756f3c (diff)
downloadllvm-360f0062bc83610e944123ee30eb057c325dfbf7.tar.gz
llvm-360f0062bc83610e944123ee30eb057c325dfbf7.tar.bz2
llvm-360f0062bc83610e944123ee30eb057c325dfbf7.tar.xz
Emit pubtypes only when going for darwin gdb compatibility.
rdar://10393214 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 02d86c7ad2..944c2027ee 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -832,7 +832,10 @@ void DwarfDebug::endModule() {
}
// Emit info into a debug pubtypes section.
- emitDebugPubTypes();
+ // TODO: When we don't need the option anymore we can
+ // remove all of the code that adds to the table.
+ if (DarwinGDBCompat)
+ emitDebugPubTypes();
// Emit info into a debug loc section.
emitDebugLoc();