commit | 3380cc530702a0df90e6e287069bd65c28085337 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Wed Nov 11 19:55:08 2009 +0000 |
committer | Devang Patel <dpatel@apple.com> | Wed Nov 11 19:55:08 2009 +0000 |
tree | baf14730fcc0088d057ebe8c39f0df0d3ba01276 | |
parent | 412a3b90d1f4f1ad42c6c0e7e4e596f7ab688cb7 [diff] [blame] |
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
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 3f26360..f7c8d29 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1905,6 +1905,9 @@ if (TimePassesIsEnabled) DebugTimer->startTimer(); + if (!MAI->doesSupportDebugInformation()) + return; + DebugInfoFinder DbgFinder; DbgFinder.processModule(*M);