diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-12-03 23:40:45 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-12-03 23:40:45 +0000 |
commit | 5b3f779f3324a6546f868e2386823cc42d6ed407 (patch) | |
tree | ebfb3733d6d0f6e6c9ee042e641a66e6e11cf066 /lib/Analysis | |
parent | a8de83c68aaa03cafa0e3618fb8bf030b48f6540 (diff) | |
download | external_llvm-5b3f779f3324a6546f868e2386823cc42d6ed407.zip external_llvm-5b3f779f3324a6546f868e2386823cc42d6ed407.tar.gz external_llvm-5b3f779f3324a6546f868e2386823cc42d6ed407.tar.bz2 |
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
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index aacbc11..5532cf5 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] = '.'; } } |