From 7fa6e666ece60455cf9d75eff6e6915bebf05cbc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Oct 2004 22:52:25 +0000 Subject: 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 --- lib/VMCore/ConstantFold.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/VMCore/ConstantFold.h') 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 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 &IdxList); + const std::vector &IdxList); } // End llvm namespace #endif -- cgit v1.1