[llvm] r295711 - tablegen: Fix android build
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 21 01:19:42 PST 2017
Author: labath
Date: Tue Feb 21 03:19:41 2017
New Revision: 295711
URL: http://llvm.org/viewvc/llvm-project?rev=295711&view=rev
Log:
tablegen: Fix android build
use llvm::to_string instead of std:: version.
Modified:
llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=295711&r1=295710&r2=295711&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Tue Feb 21 03:19:41 2017
@@ -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
More information about the llvm-commits
mailing list