aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
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
commit9dcbf0dedc47e667ed90a46844cbf8655eda0070 (patch)
treef6a1a45a8ccd5bbbd5f4c187567dad2654d0b32d /lib/Transforms
parent5860715e9da4ae8bc03745e10e695d8b0cd592a6 (diff)
downloadexternal_llvm-9dcbf0dedc47e667ed90a46844cbf8655eda0070.zip
external_llvm-9dcbf0dedc47e667ed90a46844cbf8655eda0070.tar.gz
external_llvm-9dcbf0dedc47e667ed90a46844cbf8655eda0070.tar.bz2
llvm-extract should remove module-level asm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/IPO/ExtractFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/ExtractFunction.cpp b/lib/Transforms/IPO/ExtractFunction.cpp
index 4cce79b..69d0926 100644
--- a/lib/Transforms/IPO/ExtractFunction.cpp
+++ b/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() {