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 | d41f119dac494079a03a8998446da9545956d37d (patch) | |
| tree | 6d4d8616e8fab25ffdb894048f674b35d08454f4 /llvm/lib/CodeGen | |
| parent | 34eeb4e9837061933067182f53b4ed714e528c58 (diff) | |
| download | bcm5719-llvm-d41f119dac494079a03a8998446da9545956d37d.tar.gz bcm5719-llvm-d41f119dac494079a03a8998446da9545956d37d.zip | |
If doesSupportDebugInformation() is false then do not try to emit dwarf debug info.
llvm-svn: 86874
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 3f26360f0b5..f7c8d29d745 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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); |

