[llvm-commits] CVS: llvm/lib/Transforms/IPO/ExtractFunction.cpp
Chris Lattner
sabre at nondot.org
Fri Oct 20 14:35:56 PDT 2006
Changes in directory llvm/lib/Transforms/IPO:
ExtractFunction.cpp updated: 1.13 -> 1.14
---
Log message:
llvm-extract should remove module-level asm
---
Diffs of the changes: (+3 -3)
ExtractFunction.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Transforms/IPO/ExtractFunction.cpp
diff -u llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.13 llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.14
--- llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.13 Thu Apr 21 18:39:37 2005
+++ llvm/lib/Transforms/IPO/ExtractFunction.cpp Fri Oct 20 16:35:41 2006
@@ -33,11 +33,11 @@
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() {
More information about the llvm-commits
mailing list