aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 03:49:26 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 03:49:26 +0000
commit6342b416f3086d3a4b9972106b77a3a8bc1d0d81 (patch)
treeaa64ad9e9d9356f4227b1264b2bf06b5f8972f84 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentfddb7667ca4d8fe83f96b388295849281ddaa5b4 (diff)
fix a regression on 2009-08-17-DebugInfo.m
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 3d86bf6fc9..490a8662fd 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1815,6 +1815,8 @@ void DwarfDebug::beginModule(Module *M) {
if (!HasDebugInfo) return;
+ shouldEmit = true;
+
// Tell MMI that we have debug info.
MMI->setDebugInfoAvailability(true);