From e37dd6ef40582063f1d8e366e3caa8ad5d403533 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 11 Nov 2009 19:55:08 +0000 Subject: [PATCH] If doesSupportDebugInformation() is false then do not try to emit dwarf debug info. llvm-svn: 86874 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 +++ 1 file changed, 3 insertions(+) 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);