summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-30 18:18:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-30 18:18:54 +0000
commit4d6aa73d6bc2e7fa5d2d8377d694e04abbe10859 (patch)
tree81105a113755c1e851c8a6c54ba66ee7ed63ae7d /llvm
parent57724c2f7e58331ef791bd1e532abf982b73291f (diff)
downloadbcm5719-llvm-4d6aa73d6bc2e7fa5d2d8377d694e04abbe10859.tar.gz
bcm5719-llvm-4d6aa73d6bc2e7fa5d2d8377d694e04abbe10859.zip
Remove itohexstr, which only had one user.
llvm-svn: 77613
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/StringExtras.h4
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp3
2 files changed, 2 insertions, 5 deletions
diff --git a/llvm/include/llvm/ADT/StringExtras.h b/llvm/include/llvm/ADT/StringExtras.h
index e40e409802d..3d1993c6b26 100644
--- a/llvm/include/llvm/ADT/StringExtras.h
+++ b/llvm/include/llvm/ADT/StringExtras.h
@@ -103,10 +103,6 @@ static inline std::string itostr(int64_t X) {
return utostr(static_cast<uint64_t>(X));
}
-static inline std::string itohexstr(int64_t X) {
- return utohexstr(static_cast<uint64_t>(X));
-}
-
static inline std::string ftostr(double V) {
char Buffer[200];
sprintf(Buffer, "%20.6e", V);
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index d953c13a561..0802483c8ad 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -932,7 +932,8 @@ public:
unsigned ResNo = TmpNo++;
assert(N->getExtTypes().size() == 1 && "Multiple types not handled!");
emitCode("SDValue Tmp" + utostr(ResNo) +
- " = CurDAG->getTargetConstant(0x" + itohexstr(II->getValue()) +
+ " = CurDAG->getTargetConstant(0x" +
+ utohexstr((uint64_t) II->getValue()) +
"ULL, " + getEnumName(N->getTypeNum(0)) + ");");
NodeOps.push_back("Tmp" + utostr(ResNo));
return NodeOps;
OpenPOWER on IntegriCloud