diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-31 04:40:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-31 04:40:28 +0000 |
commit | 2b9a5daf7c4dc39b46662a69e95e610e7b2cd4ba (patch) | |
tree | 9aa775133e8694e0f2a1d5da1620016b20d3bca8 /lib/VMCore/ConstantFold.h | |
parent | fb11053815ee4b3c6593c12aff06fefea96d7d0a (diff) | |
download | external_llvm-2b9a5daf7c4dc39b46662a69e95e610e7b2cd4ba.zip external_llvm-2b9a5daf7c4dc39b46662a69e95e610e7b2cd4ba.tar.gz external_llvm-2b9a5daf7c4dc39b46662a69e95e610e7b2cd4ba.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/ConstantFold.h')
-rw-r--r-- | lib/VMCore/ConstantFold.h | 4 |
1 files changed, 1 insertions, 3 deletions
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 <vector> - 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<Value*> &IdxList); + Constant* const *Idxs, unsigned NumIdx); } // End llvm namespace #endif |