mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Switching back to strtoll. Including config.h. On VStudio builds, this overrides strtoll.
llvm-svn: 44264
This commit is contained in:
parent
7a8a7099b1
commit
644434c904
@ -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 @@ int TGLexer::LexNumber() {
|
||||
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 @@ int TGLexer::LexNumber() {
|
||||
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 @@ int TGLexer::LexNumber() {
|
||||
while (isdigit(CurPtr[0]))
|
||||
++CurPtr;
|
||||
|
||||
Filelval.IntVal = strtol(NumStart, 0, 10);
|
||||
Filelval.IntVal = strtoll(NumStart, 0, 10);
|
||||
return INTVAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user