mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-11 10:31:40 +00:00
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
This commit is contained in:
parent
d9eb920aa4
commit
67a917d495
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user