[llvm] r325833 - Fix the build of the wasm backend.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 14:29:27 PST 2018
Author: d0k
Date: Thu Feb 22 14:29:27 2018
New Revision: 325833
URL: http://llvm.org/viewvc/llvm-project?rev=325833&view=rev
Log:
Fix the build of the wasm backend.
toString conflicts with llvm::toString here. Yay for overly generic
function names.
Modified:
llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp?rev=325833&r1=325832&r2=325833&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp Thu Feb 22 14:29:27 2018
@@ -176,10 +176,10 @@ void WebAssemblyInstPrinter::printOperan
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() ||
More information about the llvm-commits
mailing list