If doesSupportDebugInformation() is false then do not try to emit dwarf debug info.

llvm-svn: 86874
This commit is contained in:
Devang Patel 2009-11-11 19:55:08 +00:00
parent 34eeb4e983
commit d41f119dac
1 changed files with 3 additions and 0 deletions

View File

@ -1905,6 +1905,9 @@ void DwarfDebug::BeginModule(Module *M, MachineModuleInfo *mmi) {
if (TimePassesIsEnabled)
DebugTimer->startTimer();
if (!MAI->doesSupportDebugInformation())
return;
DebugInfoFinder DbgFinder;
DbgFinder.processModule(*M);