aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-04-16 18:34:20 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-04-16 18:34:20 +0000
commit1e9aef31545b2312ddfc5ac2593ad8e48754e2c6 (patch)
tree2f9d79dcd6f152ae0cf305757f19fddcb64cc417 /lib/CodeGen/CGObjCMac.cpp
parent3201f6beec688ab9fe8750527e28f52d5420e22d (diff)
Category method synbols must be qualified by gategory name to
match gcc's. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 629ea80945..9d45ff6404 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -3043,6 +3043,12 @@ void CGObjCCommonMac::GetNameForMethod(const ObjCMethodDecl *D,
NameOut += '[';
assert (CD && "Missing container decl in GetNameForMethod");
NameOut += CD->getNameAsString();
+ if (const ObjCCategoryImplDecl *CID =
+ dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext())) {
+ NameOut += '(';
+ NameOut += CID->getNameAsString();
+ NameOut+= ')';
+ }
// FIXME. For a method in a category, (CAT_NAME) is inserted here.
// Right now! there is not enough info. to do this.
NameOut += ' ';