projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5860715
)
llvm-extract should remove module-level asm
author
Chris Lattner
<sabre@nondot.org>
Fri, 20 Oct 2006 21:35:41 +0000
(21:35 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/ExtractFunction.cpp
b/lib/Transforms/IPO/ExtractFunction.cpp
index 4cce79be61e867388990ab6fd5ac5766476ea9c7..69d0926fb6212334c84443c82bb0913fad951843 100644
(file)
--- 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() {