Skip to content

Commit

Permalink
tablegen: Fix android build
Browse files Browse the repository at this point in the history
use llvm::to_string instead of std:: version.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295711 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
labath committed Feb 21, 2017
1 parent 4e7e88a commit 94403df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/TableGen/GlobalISelEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -184,7 +185,7 @@ class OperandMatcher : public PredicateListMatcher<OperandPredicateMatcher> {
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
Expand Down

0 comments on commit 94403df

Please sign in to comment.