diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-14 18:15:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-14 18:15:46 +0000 |
commit | 75831904220042260c4faece8507a2807acba47f (patch) | |
tree | 69d0fd5dfad613c79932f7f5c53e2e61a2616cf3 /include/llvm/Constants.h | |
parent | 50a47e93cebdf22dacb95a6e75a5b803fc4c3e04 (diff) | |
download | external_llvm-75831904220042260c4faece8507a2807acba47f.zip external_llvm-75831904220042260c4faece8507a2807acba47f.tar.gz external_llvm-75831904220042260c4faece8507a2807acba47f.tar.bz2 |
revert my ConstantVector patch, it seems to have made the llvm-gcc
builders unhappy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index c4768f8..50e64d4 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -25,7 +25,7 @@ #include "llvm/OperandTraits.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/APFloat.h" -#include "llvm/ADT/ArrayRef.h" +#include <vector> namespace llvm { @@ -39,6 +39,8 @@ template<class ConstantClass, class TypeClass, class ValType> struct ConstantCreator; template<class ConstantClass, class TypeClass> struct ConvertConstantType; +template<typename T, unsigned N> +class SmallVector; //===----------------------------------------------------------------------===// /// This is the shared class of boolean and integer constants. This class @@ -471,9 +473,9 @@ protected: ConstantVector(const VectorType *T, const std::vector<Constant*> &Val); public: // ConstantVector accessors - static Constant *get(ArrayRef<Constant*> V); - // FIXME: Eliminate this constructor form. static Constant *get(const VectorType *T, const std::vector<Constant*> &V); + static Constant *get(const std::vector<Constant*> &V); + static Constant *get(Constant *const *Vals, unsigned NumVals); /// Transparently provide more efficient getOperand methods. DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); |