projects
/
oota-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 2f5cd62d2d9d312b3e98507077b8b5a1df486c11..d5dbb52c0fff992234a20738b85182243402ef29 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: