add ppc64/pwr8 as target
[oota-llvm.git] / lib / AsmParser / LLParser.cpp
index 0c188f983ff531a8d53eb627f4e01bb7d98e7eb9..840f764d3adcad27d2e7ba855756f99caff21b1f 100644 (file)
 using namespace llvm;
 
 static std::string getTypeString(Type *T) {
-  std::string Result;
-  raw_string_ostream Tmp(Result);
-  Tmp << *T;
-  return Tmp.str();
+  string_ostream Result;
+  Result << *T;
+  return Result.str();
 }
 
 /// Run: module ::= toplevelentity*
@@ -518,6 +517,7 @@ bool LLParser::ParseNamedGlobal() {
 bool LLParser::ParseMDString(MDString *&Result) {
   std::string Str;
   if (ParseStringConstant(Str)) return true;
+  llvm::UpgradeMDStringConstant(Str);
   Result = MDString::get(Context, Str);
   return false;
 }