diff options
| author | Eric Christopher <echristo@apple.com> | 2011-11-08 19:16:01 +0000 | 
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-11-08 19:16:01 +0000 | 
| commit | 970771c0e87519456d9cce8be183b5fb3d859ba2 (patch) | |
| tree | 97c7f6dcca641013edf42294b04338b97f823485 | |
| parent | fbbbd04705f38674e93df7ef744876f7ed36f46e (diff) | |
| download | bcm5719-llvm-970771c0e87519456d9cce8be183b5fb3d859ba2.tar.gz bcm5719-llvm-970771c0e87519456d9cce8be183b5fb3d859ba2.zip  | |
Add the base ObjC method name to the names lookup table as well.
llvm-svn: 144105
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 64e0e92edb5..286075fb025 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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;  | 

