diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-23 07:32:02 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-23 07:32:02 +0000 |
commit | 9eb1a94c2020b4d6ba53962745eef19559b39a9f (patch) | |
tree | 069fe8a7fd6c7673ce5233025c7b298c62330b73 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 3180d5a0d5309c17f4cc49b700c8957b6f35982a (diff) |
Only emit the __debug_inlined section if we're trying to be compatible
with older gdbs on darwin.
rdar://10975874
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 944c2027ee..2c23712a2c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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(); |