summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-11-08 19:16:01 +0000
committerEric Christopher <echristo@apple.com>2011-11-08 19:16:01 +0000
commit67a917d495d38004e3a4a134eec81b312a71a164 (patch)
treeeca5aeaf845b396781c8d41c5f1e098ccc348b18 /lib
parentd9eb920aa4d90e59f6c855bf2b593cdd231ed155 (diff)
downloadllvm-67a917d495d38004e3a4a134eec81b312a71a164.tar.gz
llvm-67a917d495d38004e3a4a134eec81b312a71a164.tar.bz2
llvm-67a917d495d38004e3a4a134eec81b312a71a164.tar.xz
Add the base ObjC method name to the names lookup table as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 64e0e92edb..286075fb02 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -552,6 +552,10 @@ static void getObjCClassCategory(StringRef In, StringRef &Class,
return;
}
+static StringRef getObjCMethodName(StringRef In) {
+ return In.slice(In.find(' ') + 1, In.find(']'));
+}
+
/// construct SubprogramDIE - Construct subprogram DIE.
void DwarfDebug::constructSubprogramDIE(CompileUnit *TheCU,
const MDNode *N) {
@@ -599,6 +603,8 @@ void DwarfDebug::constructSubprogramDIE(CompileUnit *TheCU,
TheCU->addAccelObjC(Class, SubprogramDie);
if (Category != "")
TheCU->addAccelObjC(Category, SubprogramDie);
+ // Also add the base method name to the name table.
+ TheCU->addAccelName(getObjCMethodName(SP.getName()), SubprogramDie);
}
return;