fix a regression on 2009-08-17-DebugInfo.m
authorChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2010 03:49:26 +0000 (03:49 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2010 03:49:26 +0000 (03:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 3d86bf6fc91302414d95cb68f03ac8ccf1be32fb..490a8662fd2ea5b8ab205091f62e401730a81f0f 100644 (file)
@@ -1815,6 +1815,8 @@ void DwarfDebug::beginModule(Module *M) {
   
   if (!HasDebugInfo) return;
 
+  shouldEmit = true;
+  
   // Tell MMI that we have debug info.
   MMI->setDebugInfoAvailability(true);