summaryrefslogtreecommitdiff
path: root/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-12-03 23:29:30 +0000
committerDevang Patel <dpatel@apple.com>2010-12-03 23:29:30 +0000
commitddb85acdbe2fa3a4ced01e8426d96b8fe9e22128 (patch)
tree3548967f55dba1d1e0a44840f62edf3ceb379ac0 /lib/Analysis/DebugInfo.cpp
parent1b555d9f960e54e9e685585435daf63d89c88a56 (diff)
downloadllvm-ddb85acdbe2fa3a4ced01e8426d96b8fe9e22128.tar.gz
llvm-ddb85acdbe2fa3a4ced01e8426d96b8fe9e22128.tar.bz2
llvm-ddb85acdbe2fa3a4ced01e8426d96b8fe9e22128.tar.xz
Ignore '+' while creating mdnode name from ObjC symbol name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r--lib/Analysis/DebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 5df381f2ec..aacbc11e4d 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -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] = '.';
}
}