mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Do not runOnFunction on external functions.
llvm-svn: 32510
This commit is contained in:
parent
09032bc2b0
commit
e08024130b
@ -761,6 +761,9 @@ BasicBlockPassManager_New::addPass(Pass *P) {
|
|||||||
bool
|
bool
|
||||||
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
||||||
|
|
||||||
|
if (F.isExternal())
|
||||||
|
return false;
|
||||||
|
|
||||||
bool Changed = doInitialization(F);
|
bool Changed = doInitialization(F);
|
||||||
initializeAnalysisInfo();
|
initializeAnalysisInfo();
|
||||||
|
|
||||||
@ -972,6 +975,10 @@ bool FunctionPassManagerImpl_New::runOnModule(Module &M) {
|
|||||||
bool FunctionPassManagerImpl_New::runOnFunction(Function &F) {
|
bool FunctionPassManagerImpl_New::runOnFunction(Function &F) {
|
||||||
|
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
|
|
||||||
|
if (F.isExternal())
|
||||||
|
return false;
|
||||||
|
|
||||||
initializeAnalysisInfo();
|
initializeAnalysisInfo();
|
||||||
|
|
||||||
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
||||||
|
Loading…
Reference in New Issue
Block a user