summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TGLexer.cpp
diff options
context:
space:
mode:
authorChuck Rose III <cfr@adobe.com>2007-11-21 00:37:56 +0000
committerChuck Rose III <cfr@adobe.com>2007-11-21 00:37:56 +0000
commit07b57d26263057daa703ddda980ac16e6da8c950 (patch)
tree46af7738f4d5b6cf541c32a36f7c32004909b0d6 /llvm/utils/TableGen/TGLexer.cpp
parentf265bec4b0d33ecd281916228224947a2c6b1e2a (diff)
downloadbcm5719-llvm-07b57d26263057daa703ddda980ac16e6da8c950.tar.gz
bcm5719-llvm-07b57d26263057daa703ddda980ac16e6da8c950.zip
This change does a couple of things. First it gets the Visual Studio builds working.
I added the lexing files to the VStudio projects and removed the .l files from the VStudio projects. There was a problem with use of strtoll in TGLexer.cpp and Chris suggested switching to strtol, so that's included here. Additionally, this checkin adds minimal x64 builds to the VStudio builds. Build issues related to x64 in the windows specific files for DynamicLibrary.inc and Singals.inc are worked around, but not ultimately solved. Binaries used to be stored in ...\win32\{Debug|Release} but are now kept in ...\win32\bin\{win32|x64}\{Debug|Release} intermediate files will continue to be stored in the individual project directories under win32. Some names will likely change in the future to reflect that the vstudio projects are no longer 32-bit only, but I wanted to get things up and running today so kept away from bigger restructuring. llvm-svn: 44260
Diffstat (limited to 'llvm/utils/TableGen/TGLexer.cpp')
-rw-r--r--llvm/utils/TableGen/TGLexer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/TGLexer.cpp b/llvm/utils/TableGen/TGLexer.cpp
index c859604b55a..562f0ee0f72 100644
--- a/llvm/utils/TableGen/TGLexer.cpp
+++ b/llvm/utils/TableGen/TGLexer.cpp
@@ -341,7 +341,8 @@ int TGLexer::LexNumber() {
if (CurPtr == NumStart)
return ReturnError(CurPtr-2, "Invalid hexadecimal number");
- Filelval.IntVal = strtoll(NumStart, 0, 16);
+ Filelval.IntVal = strtol(NumStart, 0, 16);
+
return INTVAL;
} else if (CurPtr[0] == 'b') {
++CurPtr;
@@ -352,7 +353,8 @@ int TGLexer::LexNumber() {
// Requires at least one binary digit.
if (CurPtr == NumStart)
return ReturnError(CurPtr-2, "Invalid binary number");
- Filelval.IntVal = strtoll(NumStart, 0, 2);
+
+ Filelval.IntVal = strtol(NumStart, 0, 2);
return INTVAL;
}
}
@@ -365,7 +367,8 @@ int TGLexer::LexNumber() {
while (isdigit(CurPtr[0]))
++CurPtr;
- Filelval.IntVal = strtoll(NumStart, 0, 10);
+
+ Filelval.IntVal = strtol(NumStart, 0, 10);
return INTVAL;
}
OpenPOWER on IntegriCloud