OSDN Git Service

tablegen: Fix android build
authorPavel Labath <labath@google.com>
Tue, 21 Feb 2017 09:19:41 +0000 (09:19 +0000)
committerPavel Labath <labath@google.com>
Tue, 21 Feb 2017 09:19:41 +0000 (09:19 +0000)
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

utils/TableGen/GlobalISelEmitter.cpp

index ee4d841..c03ebd3 100644 (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