Eliminate additional redundant copies of Triple objects. NFC.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 24 Jun 2015 13:25:57 +0000 (13:25 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 24 Jun 2015 13:25:57 +0000 (13:25 +0000)
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

lib/CodeGen/TargetLoweringBase.cpp
lib/CodeGen/WinEHPrepare.cpp

index 1bc89aa2271d470bc7594e8f427032020c489099..53f3b00789c73db359333edb592aad51433e05c5 100644 (file)
@@ -778,7 +778,7 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) {
   InsertFencesForAtomic = false;
   MinimumJumpTableEntries = 4;
 
-  InitLibcallNames(LibcallRoutineNames, Triple(TM.getTargetTriple()));
+  InitLibcallNames(LibcallRoutineNames, TM.getTargetTriple());
   InitCmpLibcallCCs(CmpLibcallCCs);
   InitLibcallCallingConvs(LibcallCallingConvs);
 }
index d04d93f11e4120f959677fb13a96a0e2a99fc996..a0b59520a3e851b334cd35c7d73992b0e8a47ac6 100644 (file)
@@ -76,7 +76,7 @@ public:
   WinEHPrepare(const TargetMachine *TM = nullptr)
       : FunctionPass(ID) {
     if (TM)
-      TheTriple = Triple(TM->getTargetTriple());
+      TheTriple = TM->getTargetTriple();
   }
 
   bool runOnFunction(Function &Fn) override;