summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-23 07:32:02 +0000
committerEric Christopher <echristo@apple.com>2012-08-23 07:32:02 +0000
commit3a47c3e3cd6af8334203a44d8ff34259d4a1b361 (patch)
tree548767e54611db7b0abbca04c46171dc9af073bd /llvm/lib/CodeGen/AsmPrinter
parent35ceacbcc2dea612efbf04e0e13c5c411a0c2cea (diff)
downloadbcm5719-llvm-3a47c3e3cd6af8334203a44d8ff34259d4a1b361.tar.gz
bcm5719-llvm-3a47c3e3cd6af8334203a44d8ff34259d4a1b361.zip
Only emit the __debug_inlined section if we're trying to be compatible
with older gdbs on darwin. rdar://10975874 llvm-svn: 162436
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 944c2027ee4..2c23712a2cd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -850,7 +850,11 @@ void DwarfDebug::endModule() {
emitDebugMacInfo();
// Emit inline info.
- emitDebugInlineInfo();
+ // TODO: When we don't need the option anymore we
+ // can remove all of the code that this section
+ // depends upon.
+ if (DarwinGDBCompat)
+ emitDebugInlineInfo();
// Emit info into a debug str section.
emitDebugStr();
OpenPOWER on IntegriCloud