summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-02-22 22:29:27 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-02-22 22:29:27 +0000
commita01e97d7487211268c656cab24542578306087ec (patch)
tree65ea7a0a783d60c3442f0ed839c58a2a41518fbf /llvm/lib
parent0d8f5d1720c33a3485b41388b6c2f610a71bad31 (diff)
downloadbcm5719-llvm-a01e97d7487211268c656cab24542578306087ec.tar.gz
bcm5719-llvm-a01e97d7487211268c656cab24542578306087ec.zip
Fix the build of the wasm backend.
toString conflicts with llvm::toString here. Yay for overly generic function names. llvm-svn: 325833
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
index c3f0f278714..73d9b3dedad 100644
--- a/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
+++ b/llvm/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
@@ -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() ||
OpenPOWER on IntegriCloud