summaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp')
-rw-r--r--llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp b/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp
index b617a3dbca58..3a2ef5565606 100644
--- a/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp
+++ b/llvm/utils/TableGen/Common/VarLenCodeEmitterGen.cpp
@@ -320,10 +320,7 @@ void VarLenCodeEmitterGen::run(raw_ostream &OS) {
}
// Default case: unhandled opcode
OS << " default:\n"
- << " std::string msg;\n"
- << " raw_string_ostream Msg(msg);\n"
- << " Msg << \"Not supported instr: \" << MI;\n"
- << " report_fatal_error(Msg.str().c_str());\n"
+ << " reportUnsupportedInst(MI);\n"
<< " }\n";
OS << "}\n\n";
}