1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Ignore '+' while creating mdnode name from ObjC symbol name.

llvm-svn: 120853
This commit is contained in:
Devang Patel 2010-12-03 23:29:30 +00:00
parent 3b5c857f01
commit fdc570cad4

View File

@ -1161,7 +1161,7 @@ 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 == ':')
if (C == '[' || C == ']' || C == ' ' || C == ':' || C == '+')
Str[i] = '.';
}
}