1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

tablegen: Fix android build

use llvm::to_string instead of std:: version.

llvm-svn: 295711
This commit is contained in:
Pavel Labath 2017-02-21 09:19:41 +00:00
parent 48eba570d6
commit 4666520529

View File

@ -36,6 +36,7 @@
#include "llvm/CodeGen/MachineValueType.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Record.h"
#include "llvm/TableGen/TableGenBackend.h"
@ -184,7 +185,7 @@ protected:
public:
OperandMatcher(unsigned OpIdx) : OpIdx(OpIdx) {}
std::string getOperandExpr(StringRef InsnVarName) const {
return (InsnVarName + ".getOperand(" + std::to_string(OpIdx) + ")").str();
return (InsnVarName + ".getOperand(" + llvm::to_string(OpIdx) + ")").str();
}
/// Emit a C++ expression that tests whether the instruction named in