diff options
author | Devang Patel <dpatel@apple.com> | 2009-11-11 19:55:08 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-11-11 19:55:08 +0000 |
commit | 3380cc530702a0df90e6e287069bd65c28085337 (patch) | |
tree | baf14730fcc0088d057ebe8c39f0df0d3ba01276 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 412a3b90d1f4f1ad42c6c0e7e4e596f7ab688cb7 (diff) |
If doesSupportDebugInformation() is false then do not try to emit dwarf debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 3f26360f0b..f7c8d29d74 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1905,6 +1905,9 @@ void DwarfDebug::BeginModule(Module *M, MachineModuleInfo *mmi) { if (TimePassesIsEnabled) DebugTimer->startTimer(); + if (!MAI->doesSupportDebugInformation()) + return; + DebugInfoFinder DbgFinder; DbgFinder.processModule(*M); |