aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
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
commit12c99d8160bbc4426feb09a6c020d3ba45ed4f06 (patch)
treecd286883f7e84abdca9421edee92f54431d6c9bb /lib/AsmParser
parente951bdff0d1fbdb481570969b59c57716d79761c (diff)
downloadexternal_llvm-12c99d8160bbc4426feb09a6c020d3ba45ed4f06.zip
external_llvm-12c99d8160bbc4426feb09a6c020d3ba45ed4f06.tar.gz
external_llvm-12c99d8160bbc4426feb09a6c020d3ba45ed4f06.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')
-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: