a more graceful fix for test/Other/inline-asm-newline-terminator.ll,
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index d9387a8e72c509655878442630f16de2faa7ceb7..db1b37ab263fb242ed96a4f6df10bd950c06d5d8 100644 (file)
@@ -178,7 +178,7 @@ bool AsmPrinter::doInitialization(Module &M) {
   if (!M.getModuleInlineAsm().empty()) {
     OutStreamer.AddComment("Start of file scope inline assembly");
     OutStreamer.AddBlankLine();
-    EmitInlineAsm(M.getModuleInlineAsm(), 0/*no loc cookie*/);
+    EmitInlineAsm(M.getModuleInlineAsm()+"\n", 0/*no loc cookie*/);
     OutStreamer.AddComment("End of file scope inline assembly");
     OutStreamer.AddBlankLine();
   }