summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index 10ced4e24be..6f216b7c998 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -72,9 +72,10 @@ void AsmPrinter::SwitchSection(const char *NewSection, const GlobalValue *GV) {
bool AsmPrinter::doInitialization(Module &M) {
Mang = new Mangler(M, GlobalPrefix);
- if (!M.getInlineAsm().empty())
- O << CommentString << " Start File Scope Asm Blocks:\n" << M.getInlineAsm()
- << "\n" << CommentString << " End File Scope Asm Blocks\n";
+ if (!M.getModuleInlineAsm().empty())
+ O << CommentString << " Start of file scope inline assembly\n"
+ << M.getModuleInlineAsm()
+ << "\n" << CommentString << " End of file scope inline assembly\n";
SwitchSection("", 0); // Reset back to no section.
return false;
OpenPOWER on IntegriCloud