mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Do not runOnFunction on external functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41545fd663
commit
1fbe2c9964
@ -761,6 +761,9 @@ BasicBlockPassManager_New::addPass(Pass *P) {
|
||||
bool
|
||||
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
||||
|
||||
if (F.isExternal())
|
||||
return false;
|
||||
|
||||
bool Changed = doInitialization(F);
|
||||
initializeAnalysisInfo();
|
||||
|
||||
@ -972,6 +975,10 @@ bool FunctionPassManagerImpl_New::runOnModule(Module &M) {
|
||||
bool FunctionPassManagerImpl_New::runOnFunction(Function &F) {
|
||||
|
||||
bool Changed = false;
|
||||
|
||||
if (F.isExternal())
|
||||
return false;
|
||||
|
||||
initializeAnalysisInfo();
|
||||
|
||||
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user