[llvm-commits] [llvm] r44264 - /llvm/trunk/utils/TableGen/TGLexer.cpp

Chuck Rose III cfr at adobe.com
Wed Nov 21 11:36:26 PST 2007


Author: cfr
Date: Wed Nov 21 13:36:25 2007
New Revision: 44264

URL: http://llvm.org/viewvc/llvm-project?rev=44264&view=rev
Log:
Switching back to strtoll. Including config.h.  On VStudio builds, this overrides strtoll.

Modified:
    llvm/trunk/utils/TableGen/TGLexer.cpp

Modified: llvm/trunk/utils/TableGen/TGLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TGLexer.cpp?rev=44264&r1=44263&r2=44264&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/TGLexer.cpp (original)
+++ llvm/trunk/utils/TableGen/TGLexer.cpp Wed Nov 21 13:36:25 2007
@@ -18,6 +18,7 @@
 #include "llvm/Support/MemoryBuffer.h"
 typedef std::pair<llvm::Record*, std::vector<llvm::Init*>*> SubClassRefTy;
 #include "FileParser.h"
+#include "llvm/Config/config.h"
 #include <cctype>
 using namespace llvm;
 
@@ -341,7 +342,7 @@
       if (CurPtr == NumStart)
         return ReturnError(CurPtr-2, "Invalid hexadecimal number");
 
-      Filelval.IntVal = strtol(NumStart, 0, 16);
+      Filelval.IntVal = strtoll(NumStart, 0, 16);
 
       return INTVAL;
     } else if (CurPtr[0] == 'b') {
@@ -354,7 +355,7 @@
       if (CurPtr == NumStart)
         return ReturnError(CurPtr-2, "Invalid binary number");
 
-      Filelval.IntVal = strtol(NumStart, 0, 2);
+      Filelval.IntVal = strtoll(NumStart, 0, 2);
       return INTVAL;
     }
   }
@@ -368,7 +369,7 @@
   while (isdigit(CurPtr[0]))
     ++CurPtr;
 
-  Filelval.IntVal = strtol(NumStart, 0, 10);
+  Filelval.IntVal = strtoll(NumStart, 0, 10);
   return INTVAL;
 }
 





More information about the llvm-commits mailing list