mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Eliminate additional redundant copies of Triple objects. NFC.
Subscribers: rafael, llvm-commits, rengolin Differential Revision: http://reviews.llvm.org/D10654 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf98467060
commit
128f072d3b
@ -778,7 +778,7 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) {
|
|||||||
InsertFencesForAtomic = false;
|
InsertFencesForAtomic = false;
|
||||||
MinimumJumpTableEntries = 4;
|
MinimumJumpTableEntries = 4;
|
||||||
|
|
||||||
InitLibcallNames(LibcallRoutineNames, Triple(TM.getTargetTriple()));
|
InitLibcallNames(LibcallRoutineNames, TM.getTargetTriple());
|
||||||
InitCmpLibcallCCs(CmpLibcallCCs);
|
InitCmpLibcallCCs(CmpLibcallCCs);
|
||||||
InitLibcallCallingConvs(LibcallCallingConvs);
|
InitLibcallCallingConvs(LibcallCallingConvs);
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ public:
|
|||||||
WinEHPrepare(const TargetMachine *TM = nullptr)
|
WinEHPrepare(const TargetMachine *TM = nullptr)
|
||||||
: FunctionPass(ID) {
|
: FunctionPass(ID) {
|
||||||
if (TM)
|
if (TM)
|
||||||
TheTriple = Triple(TM->getTargetTriple());
|
TheTriple = TM->getTargetTriple();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runOnFunction(Function &Fn) override;
|
bool runOnFunction(Function &Fn) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user