mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 17:32:36 +00:00
Revert r103493, materializing functions in the regular PassManager.
It works in simple cases, but it isn't a general solution. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16d8f8bd91
commit
d42718080f
@ -1444,16 +1444,8 @@ bool FPPassManager::runOnFunction(Function &F) {
|
||||
bool FPPassManager::runOnModule(Module &M) {
|
||||
bool Changed = doInitialization(M);
|
||||
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
||||
Function &F = *I;
|
||||
if (F.isMaterializable()) {
|
||||
std::string errstr;
|
||||
if (F.Materialize(&errstr))
|
||||
report_fatal_error("Error reading bitcode file: " + Twine(errstr));
|
||||
}
|
||||
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
runOnFunction(*I);
|
||||
}
|
||||
|
||||
return doFinalization(M) || Changed;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user