aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 17:28:30 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 17:28:30 +0000
commit432798f66003b5992d9790cde8400c351d164dd1 (patch)
treecd286883f7e84abdca9421edee92f54431d6c9bb /lib/AsmParser/LLParser.cpp
parente2d7de8f8ca0574662d036761eb272658fc318e9 (diff)
downloadexternal_llvm-432798f66003b5992d9790cde8400c351d164dd1.zip
external_llvm-432798f66003b5992d9790cde8400c351d164dd1.tar.gz
external_llvm-432798f66003b5992d9790cde8400c351d164dd1.tar.bz2
Use LLVMContext for generating MDStrings too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.cpp')
-rw-r--r--lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index 2f5cd62..d5dbb52 100644
--- 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: