summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit77826182714de3d37f22058d54c6c635330cde72 (patch)
tree2dc8b0a003706fc6b24d2a76f5b299842626faba /llvm/lib/CodeGen
parent6cb559497987c904c4385008448b3424fb4b57f6 (diff)
downloadbcm5719-llvm-77826182714de3d37f22058d54c6c635330cde72.tar.gz
bcm5719-llvm-77826182714de3d37f22058d54c6c635330cde72.zip
Emit pubtypes only when going for darwin gdb compatibility.
rdar://10393214 llvm-svn: 162434
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 02d86c7ad25..944c2027ee4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud