diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-08 18:24:21 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-08 18:24:21 +0000 |
commit | 3a082d81006e7a2e01a6e431a22e21c78490ff8f (patch) | |
tree | 9116e58a4f6064d3453cc8e5bc45d3e948ffc9fa /lib/AST/DeclObjC.cpp | |
parent | 63d65f873fdfcb04b216ea9c648d1df5992aed1c (diff) |
Vastly improve PredefinedExpr output, both in Sema and CodeGen. Patch by Sam Weinig!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index 8338c48c0b..ee2b81560d 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -290,23 +290,6 @@ void ObjCMethodDecl::createImplicitParams(ASTContext &Context, Context.getObjCSelType())); } - - -/// getSynthesizedMethodSize - Compute size of synthesized method name -/// as done be the rewrite. -/// -unsigned ObjCMethodDecl::getSynthesizedMethodSize() const { - // syntesized method name is a concatenation of -/+[class-name selector] - // Get length of this name. - unsigned length = 3; // _I_ or _C_ - length += getClassInterface()->getNameAsString().size()+1; // extra for _ - if (const ObjCCategoryImplDecl *CID = - dyn_cast<ObjCCategoryImplDecl>(getDeclContext())) - length += CID->getNameAsString().size()+1; - length += getSelector().getAsString().size(); // selector name - return length; -} - ObjCInterfaceDecl *ObjCMethodDecl::getClassInterface() { if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) return ID; |