From 5b3f779f3324a6546f868e2386823cc42d6ed407 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 3 Dec 2010 23:40:45 +0000 Subject: [PATCH] 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 --- lib/Analysis/DebugInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index aacbc11e4d7..5532cf5f6fc 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -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] = '.'; } }