diff options
Diffstat (limited to 'lib/Target/Blackfin')
| -rw-r--r-- | lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp | 8 | ||||
| -rw-r--r-- | lib/Target/Blackfin/BlackfinIntrinsicInfo.h | 4 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp b/lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp index ae8ee9e..7135676 100644 --- a/lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp +++ b/lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp @@ -34,7 +34,7 @@ namespace bfinIntrinsic {  } -std::string BlackfinIntrinsicInfo::getName(unsigned IntrID, const Type **Tys, +std::string BlackfinIntrinsicInfo::getName(unsigned IntrID, Type **Tys,                                             unsigned numTys) const {    static const char *const names[] = {  #define GET_INTRINSIC_NAME_TABLE @@ -81,8 +81,8 @@ bool BlackfinIntrinsicInfo::isOverloaded(unsigned IntrID) const {  #include "BlackfinGenIntrinsics.inc"  #undef GET_INTRINSIC_ATTRIBUTES -static const FunctionType *getType(LLVMContext &Context, unsigned id) { -  const Type *ResultTy = NULL; +static FunctionType *getType(LLVMContext &Context, unsigned id) { +  Type *ResultTy = NULL;    std::vector<Type*> ArgTys;    bool IsVarArg = false; @@ -94,7 +94,7 @@ static const FunctionType *getType(LLVMContext &Context, unsigned id) {  }  Function *BlackfinIntrinsicInfo::getDeclaration(Module *M, unsigned IntrID, -                                                const Type **Tys, +                                                Type **Tys,                                                  unsigned numTy) const {    assert(!isOverloaded(IntrID) && "Blackfin intrinsics are not overloaded");    AttrListPtr AList = getAttributes((bfinIntrinsic::ID) IntrID); diff --git a/lib/Target/Blackfin/BlackfinIntrinsicInfo.h b/lib/Target/Blackfin/BlackfinIntrinsicInfo.h index 7c4b5a9..f05db5a 100644 --- a/lib/Target/Blackfin/BlackfinIntrinsicInfo.h +++ b/lib/Target/Blackfin/BlackfinIntrinsicInfo.h @@ -19,11 +19,11 @@ namespace llvm {    class BlackfinIntrinsicInfo : public TargetIntrinsicInfo {    public: -    std::string getName(unsigned IntrID, const Type **Tys = 0, +    std::string getName(unsigned IntrID, Type **Tys = 0,                          unsigned numTys = 0) const;      unsigned lookupName(const char *Name, unsigned Len) const;      bool isOverloaded(unsigned IID) const; -    Function *getDeclaration(Module *M, unsigned ID, const Type **Tys = 0, +    Function *getDeclaration(Module *M, unsigned ID, Type **Tys = 0,                               unsigned numTys = 0) const;    };  | 
