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;
New->setEndianness(M->getEndianness());
New->setPointerSize(M->getPointerSize());
New->setTargetTriple(M->getTargetTriple());
- New->setInlineAsm(M->getInlineAsm());
+ New->setModuleInlineAsm(M->getModuleInlineAsm());
// Copy all of the type symbol table entries over.
const SymbolTable &SymTab = M->getSymbolTable();