From: Daniel Dunbar Date: Mon, 10 Aug 2009 20:56:46 +0000 (+0000) Subject: Rename ConvertType to ConvertConstant to avoid a name conflict on llvm-gcc. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e74f3c0ce6c16908a8690824704f148ecaf7ddb1;p=oota-llvm.git Rename ConvertType to ConvertConstant to avoid a name conflict on llvm-gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78596 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index a3659499373..df13291922c 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -38,7 +38,7 @@ class VectorType; template struct ConstantCreator; template -struct ConvertType; +struct ConvertConstant; //===----------------------------------------------------------------------===// /// This is the shared class of boolean and integer constants. This class @@ -552,7 +552,7 @@ public: class ConstantExpr : public Constant { friend struct ConstantCreator > >; - friend struct ConvertType; + friend struct ConvertConstant; protected: ConstantExpr(const Type *ty, unsigned Opcode, Use *Ops, unsigned NumOps) diff --git a/lib/VMCore/ConstantsContext.h b/lib/VMCore/ConstantsContext.h index 4b08e04dafd..2868f87fa4a 100644 --- a/lib/VMCore/ConstantsContext.h +++ b/lib/VMCore/ConstantsContext.h @@ -340,7 +340,7 @@ struct ConstantCreator { }; template -struct ConvertType { +struct ConvertConstant { static void convert(ConstantClass *OldC, const TypeClass *NewTy) { llvm_unreachable("This type cannot be converted!"); } @@ -391,7 +391,7 @@ struct ConstantCreator { }; template<> -struct ConvertType { +struct ConvertConstant { static void convert(ConstantExpr *OldC, const Type *NewTy) { Constant *New; switch (OldC->getOpcode()) { @@ -451,7 +451,7 @@ struct ConstantCreator > { }; template<> -struct ConvertType { +struct ConvertConstant { static void convert(ConstantVector *OldC, const VectorType *NewTy) { // Make everyone now use a constant of the new type... std::vector C; @@ -465,7 +465,7 @@ struct ConvertType { }; template<> -struct ConvertType { +struct ConvertConstant { static void convert(ConstantAggregateZero *OldC, const Type *NewTy) { // Make everyone now use a constant of the new type... Constant *New = ConstantAggregateZero::get(NewTy); @@ -476,7 +476,7 @@ struct ConvertType { }; template<> -struct ConvertType { +struct ConvertConstant { static void convert(ConstantArray *OldC, const ArrayType *NewTy) { // Make everyone now use a constant of the new type... std::vector C; @@ -490,7 +490,7 @@ struct ConvertType { }; template<> -struct ConvertType { +struct ConvertConstant { static void convert(ConstantStruct *OldC, const StructType *NewTy) { // Make everyone now use a constant of the new type... std::vector C; @@ -513,7 +513,7 @@ struct ConstantCreator { }; template<> -struct ConvertType { +struct ConvertConstant { static void convert(ConstantPointerNull *OldC, const PointerType *NewTy) { // Make everyone now use a constant of the new type... Constant *New = ConstantPointerNull::get(NewTy); @@ -532,7 +532,7 @@ struct ConstantCreator { }; template<> -struct ConvertType { +struct ConvertConstant { static void convert(UndefValue *OldC, const Type *NewTy) { // Make everyone now use a constant of the new type. Constant *New = UndefValue::get(NewTy); @@ -757,7 +757,7 @@ public: // leaving will remove() itself, causing the AbstractTypeMapEntry to be // eliminated eventually. do { - ConvertType::convert( + ConvertConstant::convert( static_cast(I->second->second), cast(NewTy));