From: Devang Patel Date: Wed, 11 Nov 2009 19:55:08 +0000 (+0000) Subject: If doesSupportDebugInformation() is false then do not try to emit dwarf debug info. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3380cc530702a0df90e6e287069bd65c28085337;p=oota-llvm.git 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 3f26360f0b5..f7c8d29d745 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);