rename method
authorChris Lattner <sabre@nondot.org>
Tue, 24 Jan 2006 04:16:34 +0000 (04:16 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Jan 2006 04:16:34 +0000 (04:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25572 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp
lib/Transforms/Utils/CloneModule.cpp

index 10ced4e24beab5d5f556e8c43ccab1cc7fb0a521..6f216b7c998e52437f9b16839f44c52d0a5190e1 100644 (file)
@@ -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;
index 1cab1587856ddf26e63ed6c8992704bd303685bb..a872551eeae364c61a6bd6d6a198f90f634e058d 100644 (file)
@@ -31,7 +31,7 @@ Module *llvm::CloneModule(const Module *M) {
   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();