aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFold.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-11 22:52:25 +0000
committerChris Lattner <sabre@nondot.org>2004-10-11 22:52:25 +0000
commit7fa6e666ece60455cf9d75eff6e6915bebf05cbc (patch)
tree22e77ddd89c2978b3dd2a49878fdcc242a88e5ab /lib/VMCore/ConstantFold.h
parent4b83380f330b1c77bb9b4ad8f63bdcf1a596afd6 (diff)
downloadexternal_llvm-7fa6e666ece60455cf9d75eff6e6915bebf05cbc.zip
external_llvm-7fa6e666ece60455cf9d75eff6e6915bebf05cbc.tar.gz
external_llvm-7fa6e666ece60455cf9d75eff6e6915bebf05cbc.tar.bz2
Allow creation of GEP constantexprs with a vector of value* operands as
well as a vector of constant*'s. It turns out that this is more efficient and all of the clients want to do that, so we should cater to them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.h')
-rw-r--r--lib/VMCore/ConstantFold.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h
index 24ef180..676b4b8 100644
--- a/lib/VMCore/ConstantFold.h
+++ b/lib/VMCore/ConstantFold.h
@@ -22,6 +22,7 @@
#include <vector>
namespace llvm {
+ class Value;
class Constant;
struct Type;
@@ -33,7 +34,7 @@ namespace llvm {
Constant *ConstantFoldBinaryInstruction(unsigned Opcode, const Constant *V1,
const Constant *V2);
Constant *ConstantFoldGetElementPtr(const Constant *C,
- const std::vector<Constant*> &IdxList);
+ const std::vector<Value*> &IdxList);
} // End llvm namespace
#endif