[stackprotector] Changed isNoopBitcast/sameNoopInput to take TargetLoweringBase inste...
authorMichael Gottesman <mgottesman@apple.com>
Mon, 22 Jul 2013 21:05:47 +0000 (21:05 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Mon, 22 Jul 2013 21:05:47 +0000 (21:05 +0000)
Both functions only use functionality from TargetLoweringBase.

rdar://13935163

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186874 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/Analysis.cpp

index 4731af5089ac3927fc942cc0a6a23d68ac069195..87e3808eb8791a2da9eb8896ef1d400fa968ea6c 100644 (file)
@@ -202,7 +202,7 @@ ISD::CondCode llvm::getICmpCondCode(ICmpInst::Predicate Pred) {
 }
 
 static bool isNoopBitcast(Type *T1, Type *T2,
-                          const TargetLowering& TLI) {
+                          const TargetLoweringBase& TLI) {
   return T1 == T2 || (T1->isPointerTy() && T2->isPointerTy()) ||
          (isa<VectorType>(T1) && isa<VectorType>(T2) &&
           TLI.isTypeLegal(EVT::getEVT(T1)) && TLI.isTypeLegal(EVT::getEVT(T2)));
@@ -215,7 +215,7 @@ static bool isNoopBitcast(Type *T1, Type *T2,
 static bool sameNoopInput(const Value *V1, const Value *V2,
                           SmallVectorImpl<unsigned> &Els1,
                           SmallVectorImpl<unsigned> &Els2,
-                          const TargetLowering &TLI) {
+                          const TargetLoweringBase &TLI) {
   using std::swap;
   bool swapParity = false;
   bool equalEls = Els1 == Els2;