mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 21:46:50 +00:00
Also inore '()' while creating mdnode name from ObjC symbol name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a8de83c68a
commit
5b3f779f33
@ -1161,7 +1161,8 @@ DIFactory::CreateGlobalVariable(DIDescriptor Context, StringRef Name,
|
||||
static void fixupObjcLikeName(std::string &Str) {
|
||||
for (size_t i = 0, e = Str.size(); i < e; ++i) {
|
||||
char C = Str[i];
|
||||
if (C == '[' || C == ']' || C == ' ' || C == ':' || C == '+')
|
||||
if (C == '[' || C == ']' || C == ' ' || C == ':' || C == '+' ||
|
||||
C == '(' || C == ')')
|
||||
Str[i] = '.';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user