forked from OSchip/llvm-project
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:
parent
0d8f5d1720
commit
a01e97d748
|
@ -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() ||
|
||||
|
|
Loading…
Reference in New Issue