Remove itohexstr, which only had one user.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 30 Jul 2009 18:18:54 +0000 (18:18 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 30 Jul 2009 18:18:54 +0000 (18:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77613 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringExtras.h
utils/TableGen/DAGISelEmitter.cpp

index e40e409802d25c1ab4b213227987c417fe7371db..3d1993c6b263eebb7b502f1e6a8687e0ef6a623c 100644 (file)
@@ -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);
index d953c13a561b6e397e746c03fcb45d549d086b77..0802483c8adc7755c681917fb96d896a77abe17d 100644 (file)
@@ -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;