mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Run dead arg elimination, and tell it that it's ok to hack up non-internal functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b2a14b6f1
commit
06c818e717
@ -97,6 +97,7 @@ Module *BugDriver::performFinalCleanups() const {
|
||||
CleanupPasses.add(createFunctionResolvingPass());
|
||||
CleanupPasses.add(createGlobalDCEPass());
|
||||
CleanupPasses.add(createDeadTypeEliminationPass());
|
||||
CleanupPasses.add(createDeadArgEliminationPass(true));
|
||||
CleanupPasses.add(createVerifierPass());
|
||||
CleanupPasses.run(*M);
|
||||
return M;
|
||||
|
Loading…
Reference in New Issue
Block a user