diff options
author | Eduard Burtescu <edy.burt@gmail.com> | 2016-01-19 17:28:00 +0000 |
---|---|---|
committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-01-19 17:28:00 +0000 |
commit | 19eb03106d6042a404f4943f3e9efc74da6865f6 (patch) | |
tree | 77adf285682b322cf27b5955635970a6a0a332dc /llvm/lib/IR/ConstantFold.h | |
parent | d9cac592f444c84b63797019975aefbac20e1985 (diff) | |
download | bcm5719-llvm-19eb03106d6042a404f4943f3e9efc74da6865f6.tar.gz bcm5719-llvm-19eb03106d6042a404f4943f3e9efc74da6865f6.zip |
[opaque pointer types] [NFC] GEP: replace get(Pointer)ElementType uses with get{Source,Result}ElementType.
Summary:
GEPOperator: provide getResultElementType alongside getSourceElementType.
This is made possible by adding a result element type field to GetElementPtrConstantExpr, which GetElementPtrInst already has.
GEP: replace get(Pointer)ElementType uses with get{Source,Result}ElementType.
Reviewers: mjacob, dblaikie
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D16275
llvm-svn: 258145
Diffstat (limited to 'llvm/lib/IR/ConstantFold.h')
-rw-r--r-- | llvm/lib/IR/ConstantFold.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/ConstantFold.h b/llvm/lib/IR/ConstantFold.h index 42a9c6ba908..4f4829f930c 100644 --- a/llvm/lib/IR/ConstantFold.h +++ b/llvm/lib/IR/ConstantFold.h @@ -47,10 +47,6 @@ namespace llvm { Constant *V2); Constant *ConstantFoldCompareInstruction(unsigned short predicate, Constant *C1, Constant *C2); - Constant *ConstantFoldGetElementPtr(Constant *C, bool inBounds, - ArrayRef<Constant *> Idxs); - Constant *ConstantFoldGetElementPtr(Constant *C, bool inBounds, - ArrayRef<Value *> Idxs); Constant *ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds, ArrayRef<Constant *> Idxs); Constant *ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds, |