Fix the build of the wasm backend.

toString conflicts with llvm::toString here. Yay for overly generic
function names.

llvm-svn: 325833
This commit is contained in:
Benjamin Kramer 2018-02-22 22:29:27 +00:00
parent 0d8f5d1720
commit a01e97d748
1 changed files with 2 additions and 2 deletions

View File

@ -176,10 +176,10 @@ void WebAssemblyInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
if (Info.OperandType == WebAssembly::OPERAND_F32IMM) {
// TODO: MC converts all floating point immediate operands to double.
// This is fine for numeric values, but may cause NaNs to change bits.
O << toString(APFloat(float(Op.getFPImm())));
O << ::toString(APFloat(float(Op.getFPImm())));
} else {
assert(Info.OperandType == WebAssembly::OPERAND_F64IMM);
O << toString(APFloat(Op.getFPImm()));
O << ::toString(APFloat(Op.getFPImm()));
}
} else {
assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() ||