mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 18:31:23 +00:00
Run memsel inserter just before emit assembly to avoid tinkering by other passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08ada178b8
commit
85019e15eb
@ -47,7 +47,7 @@ bool PIC16TargetMachine::addInstSelector(PassManagerBase &PM,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PIC16TargetMachine::addPostRegAlloc(PassManagerBase &PM,
|
||||
bool PIC16TargetMachine::addPreEmitPass(PassManagerBase &PM,
|
||||
CodeGenOpt::Level OptLevel) {
|
||||
PM.add(createPIC16MemSelOptimizerPass());
|
||||
return true; // -print-machineinstr should print after this.
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
|
||||
virtual bool addInstSelector(PassManagerBase &PM,
|
||||
CodeGenOpt::Level OptLevel);
|
||||
virtual bool addPostRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
|
||||
virtual bool addPreEmitPass(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
|
||||
}; // PIC16TargetMachine.
|
||||
|
||||
/// CooperTargetMachine
|
||||
|
Loading…
Reference in New Issue
Block a user