From 2b9a5daf7c4dc39b46662a69e95e610e7b2cd4ba Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 31 Jan 2007 04:40:28 +0000 Subject: Revise APIs for creating constantexpr GEPs to not require the use of vectors. This allows us to eliminate many temporary vectors, and theirassociated malloc/free pairs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33692 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/ConstantFold.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/VMCore/ConstantFold.h') diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h index 6d7327c..e01fa77 100644 --- a/lib/VMCore/ConstantFold.h +++ b/lib/VMCore/ConstantFold.h @@ -19,8 +19,6 @@ #ifndef CONSTANTFOLDING_H #define CONSTANTFOLDING_H -#include - namespace llvm { class Value; class Constant; @@ -49,7 +47,7 @@ namespace llvm { const Constant *C1, const Constant *C2); Constant *ConstantFoldGetElementPtr(const Constant *C, - const std::vector &IdxList); + Constant* const *Idxs, unsigned NumIdx); } // End llvm namespace #endif -- cgit v1.1