summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ExtractFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-20 21:35:41 +0000
committerChris Lattner <sabre@nondot.org>2006-10-20 21:35:41 +0000
commitaf1222c1a7862add472700784dbff077785b4088 (patch)
tree878448929810d78784faa6f577b0767e79423233 /llvm/lib/Transforms/IPO/ExtractFunction.cpp
parent8366b874a945dcf21370be784085a4e6e86a1eab (diff)
downloadbcm5719-llvm-af1222c1a7862add472700784dbff077785b4088.tar.gz
bcm5719-llvm-af1222c1a7862add472700784dbff077785b4088.zip
llvm-extract should remove module-level asm
llvm-svn: 31086
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractFunction.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ExtractFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp
index 4cce79be61e..69d0926fb62 100644
--- a/llvm/lib/Transforms/IPO/ExtractFunction.cpp
+++ b/llvm/lib/Transforms/IPO/ExtractFunction.cpp
@@ -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() {
OpenPOWER on IntegriCloud