[llvm-commits] [llvm] r74710 - /llvm/trunk/lib/AsmParser/LLParser.cpp
Owen Anderson
resistor at mac.com
Thu Jul 2 10:28:41 PDT 2009
Author: resistor
Date: Thu Jul 2 12:28:30 2009
New Revision: 74710
URL: http://llvm.org/viewvc/llvm-project?rev=74710&view=rev
Log:
Use LLVMContext for generating MDStrings too.
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=74710&r1=74709&r2=74710&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Thu Jul 2 12:28:30 2009
@@ -1643,7 +1643,7 @@
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:
More information about the llvm-commits
mailing list