Revert "Introduce a string_ostream string builder facilty"
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index ebb49c34a73c8139934ba1172f1714ce8c47f4ad..799ee92d3ad519075944c1d6ea29811f31cf6117 100644 (file)
@@ -1585,7 +1585,8 @@ static const MCExpr *lowerConstant(const Constant *CV, AsmPrinter &AP) {
 
     // Otherwise report the problem to the user.
     {
-      string_ostream OS;
+      std::string S;
+      raw_string_ostream OS(S);
       OS << "Unsupported expression in static initializer: ";
       CE->printAsOperand(OS, /*PrintType=*/false,
                      !AP.MF ? nullptr : AP.MF->getFunction()->getParent());