OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e951bdf
)
Use LLVMContext for generating MDStrings too.
author
Owen Anderson
<resistor@mac.com>
Thu, 2 Jul 2009 17:28:30 +0000
(17:28 +0000)
committer
Owen Anderson
<resistor@mac.com>
Thu, 2 Jul 2009 17:28:30 +0000
(17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74710
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/lib/AsmParser/LLParser.cpp
b/lib/AsmParser/LLParser.cpp
index
2f5cd62
..
d5dbb52
100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
lib/AsmParser/LLParser.cpp
@@
-1643,7
+1643,7
@@
bool LLParser::ParseValID(ValID &ID) {
std::string Str;
if (ParseStringConstant(Str)) return true;
- ID.ConstantVal =
MDString::get
(Str.data(), Str.data() + Str.size());
+ ID.ConstantVal =
Context.getMDString
(Str.data(), Str.data() + Str.size());
return false;
}
case lltok::APSInt: