mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 18:34:09 +00:00
move createAlphaLLRPPass out of addAssemblyEmitter to make Alpha
more like other targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a499effd3b
commit
7add5ff1d1
@ -61,13 +61,13 @@ bool AlphaTargetMachine::addPreEmitPass(PassManagerBase &PM,
|
|||||||
CodeGenOpt::Level OptLevel) {
|
CodeGenOpt::Level OptLevel) {
|
||||||
// Must run branch selection immediately preceding the asm printer
|
// Must run branch selection immediately preceding the asm printer
|
||||||
PM.add(createAlphaBranchSelectionPass());
|
PM.add(createAlphaBranchSelectionPass());
|
||||||
|
PM.add(createAlphaLLRPPass(*this));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool AlphaTargetMachine::addAssemblyEmitter(PassManagerBase &PM,
|
bool AlphaTargetMachine::addAssemblyEmitter(PassManagerBase &PM,
|
||||||
CodeGenOpt::Level OptLevel,
|
CodeGenOpt::Level OptLevel,
|
||||||
bool Verbose,
|
bool Verbose,
|
||||||
formatted_raw_ostream &Out) {
|
formatted_raw_ostream &Out) {
|
||||||
PM.add(createAlphaLLRPPass(*this));
|
|
||||||
// Output assembly language.
|
// Output assembly language.
|
||||||
assert(AsmPrinterCtor && "AsmPrinter was not linked in");
|
assert(AsmPrinterCtor && "AsmPrinter was not linked in");
|
||||||
if (AsmPrinterCtor)
|
if (AsmPrinterCtor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user