llvm-extract should remove module-level asm
authorChris Lattner <sabre@nondot.org>
Fri, 20 Oct 2006 21:35:41 +0000 (21:35 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Oct 2006 21:35:41 +0000 (21:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31086 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/ExtractFunction.cpp

index 4cce79be61e867388990ab6fd5ac5766476ea9c7..69d0926fb6212334c84443c82bb0913fad951843 100644 (file)
@@ -33,11 +33,11 @@ namespace {
         Named = M.getMainFunction();
         if (Named == 0) return false;  // No function to extract
       }
-
+      
       if (deleteFunc)
         return deleteFunction();
-      else
-        return isolateFunction(M);
+      M.setModuleInlineAsm("");
+      return isolateFunction(M);
     }
 
     bool deleteFunction() {