summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-07-22 21:05:47 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-07-22 21:05:47 +0000
commitc0659fad7fc6867bf5def77ab1940bc93551b368 (patch)
tree50958c01c4a5f449bc82095d6b913620e7d61810
parent29e449f22280b8c15619e5b3e9df30f1ae9dfb0a (diff)
downloadbcm5719-llvm-c0659fad7fc6867bf5def77ab1940bc93551b368.tar.gz
bcm5719-llvm-c0659fad7fc6867bf5def77ab1940bc93551b368.zip
[stackprotector] Changed isNoopBitcast/sameNoopInput to take TargetLoweringBase instead of TargetLowering.
Both functions only use functionality from TargetLoweringBase. rdar://13935163 llvm-svn: 186874
-rw-r--r--llvm/lib/CodeGen/Analysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/Analysis.cpp b/llvm/lib/CodeGen/Analysis.cpp
index 4731af5089a..87e3808eb87 100644
--- a/llvm/lib/CodeGen/Analysis.cpp
+++ b/llvm/lib/CodeGen/Analysis.cpp
@@ -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;
OpenPOWER on IntegriCloud