diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-01-02 21:44:36 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-01-02 21:44:36 +0000 |
commit | 3a349947e5d4ba6bd16d775ce17cf9c9d181bc39 (patch) | |
tree | b60626f1a524c11193954d14ce8a5235304888bf /lib/Sema/SemaType.cpp | |
parent | 9ed2059d7b0da1775bcd0e64621aa3d90c014dc0 (diff) |
Eliminate dead code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index ed30229e95..86ad0a0a73 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -1461,34 +1461,6 @@ void LocInfoType::getAsStringInternal(std::string &Str, " GetTypeFromParser"); } -/// ObjCGetTypeForMethodDefinition - Builds the type for a method definition -/// declarator -QualType Sema::ObjCGetTypeForMethodDefinition(DeclPtrTy D) { - ObjCMethodDecl *MDecl = cast<ObjCMethodDecl>(D.getAs<Decl>()); - QualType T = MDecl->getResultType(); - llvm::SmallVector<QualType, 16> ArgTys; - - // Add the first two invisible argument types for self and _cmd. - if (MDecl->isInstanceMethod()) { - QualType selfTy = Context.getObjCInterfaceType(MDecl->getClassInterface()); - selfTy = Context.getPointerType(selfTy); - ArgTys.push_back(selfTy); - } else - ArgTys.push_back(Context.getObjCIdType()); - ArgTys.push_back(Context.getObjCSelType()); - - for (ObjCMethodDecl::param_iterator PI = MDecl->param_begin(), - E = MDecl->param_end(); PI != E; ++PI) { - QualType ArgTy = (*PI)->getType(); - assert(!ArgTy.isNull() && "Couldn't parse type?"); - ArgTy = adjustParameterType(ArgTy); - ArgTys.push_back(ArgTy); - } - T = Context.getFunctionType(T, &ArgTys[0], ArgTys.size(), - MDecl->isVariadic(), 0); - return T; -} - /// UnwrapSimilarPointerTypes - If T1 and T2 are pointer types that /// may be similar (C++ 4.4), replaces T1 and T2 with the type that /// they point to and return true. If T1 and T2 aren't pointer types |