diff options
| author | Pavel Labath <labath@google.com> | 2017-02-21 09:19:41 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-02-21 09:19:41 +0000 |
| commit | 52a82e2ec6956e84fb52518b4077beb2fadd44b6 (patch) | |
| tree | 6303186d988a1a90c986cec585632c4bdfb9056f /llvm/utils/TableGen | |
| parent | 0cd9c0491e90ed23f9f5069ae86837d77bfa26c9 (diff) | |
| download | bcm5719-llvm-52a82e2ec6956e84fb52518b4077beb2fadd44b6.tar.gz bcm5719-llvm-52a82e2ec6956e84fb52518b4077beb2fadd44b6.zip | |
tablegen: Fix android build
use llvm::to_string instead of std:: version.
llvm-svn: 295711
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/GlobalISelEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp index ee4d841c426..c03ebd3a6ac 100644 --- a/llvm/utils/TableGen/GlobalISelEmitter.cpp +++ b/llvm/utils/TableGen/GlobalISelEmitter.cpp @@ -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 |

