mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Use twines to simplify calls to report_fatal_error. For code size and readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -572,10 +572,8 @@ CstExprResTy ELFWriter::ResolveConstantExpr(const Constant *CV) {
|
||||
}
|
||||
}
|
||||
|
||||
std::string msg(CE->getOpcodeName());
|
||||
raw_string_ostream ErrorMsg(msg);
|
||||
ErrorMsg << ": Unsupported ConstantExpr type";
|
||||
report_fatal_error(ErrorMsg.str());
|
||||
report_fatal_error(CE->getOpcodeName() +
|
||||
StringRef(": Unsupported ConstantExpr type"));
|
||||
|
||||
return std::make_pair(CV, 0); // silence warning
|
||||
}
|
||||
|
Reference in New Issue
Block a user