Revert "Introduce a string_ostream string builder facilty"
[oota-llvm.git] / lib / Target / NVPTX / NVPTXAsmPrinter.cpp
index eee2f9264fc8c8c0b552c5220c48721165855c28..195b3c0fe9ed38a377f6098c370ffd0295d0835e 100644 (file)
@@ -146,7 +146,8 @@ const MCExpr *nvptx::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());