diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-23 07:10:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-23 07:10:56 +0000 |
commit | 360f0062bc83610e944123ee30eb057c325dfbf7 (patch) | |
tree | 3bf427cc7d359f3eacab4955c6408cb29e69ea27 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | ccffa8494315d2cd0fee036e9fdbd945f9756f3c (diff) |
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/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
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(); |