projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put comma in correct place for call to StructType::get
[oota-llvm.git]
/
utils
/
TableGen
/
TGLexer.h
diff --git
a/utils/TableGen/TGLexer.h
b/utils/TableGen/TGLexer.h
index 1b157e65097cbf3fa4df9a523e3dd510cc65d7b3..0e67f680557dffd1ca96c8782391e50205e29d53 100644
(file)
--- a/
utils/TableGen/TGLexer.h
+++ b/
utils/TableGen/TGLexer.h
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by Chris Lattner and is distributed under
-//
the University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-14,6
+14,7
@@
#ifndef TGLEXER_H
#define TGLEXER_H
#ifndef TGLEXER_H
#define TGLEXER_H
+#include "llvm/Support/DataTypes.h"
#include <vector>
#include <string>
#include <iosfwd>
#include <vector>
#include <string>
#include <iosfwd>
@@
-62,7
+63,7
@@
class TGLexer {
const char *TokStart;
tgtok::TokKind CurCode;
std::string CurStrVal; // This is valid for ID, STRVAL, VARNAME, CODEFRAGMENT
const char *TokStart;
tgtok::TokKind CurCode;
std::string CurStrVal; // This is valid for ID, STRVAL, VARNAME, CODEFRAGMENT
- int
CurIntVal;
// This is valid for INTVAL.
+ int
64_t CurIntVal;
// This is valid for INTVAL.
/// IncludeRec / IncludeStack - This captures the current set of include
/// directives we are nested within.
/// IncludeRec / IncludeStack - This captures the current set of include
/// directives we are nested within.
@@
-98,7
+99,7
@@
public:
"This token doesn't have a string value");
return CurStrVal;
}
"This token doesn't have a string value");
return CurStrVal;
}
- int getCurIntVal() const {
+ int
64_t
getCurIntVal() const {
assert(CurCode == tgtok::IntVal && "This token isn't an integer");
return CurIntVal;
}
assert(CurCode == tgtok::IntVal && "This token isn't an integer");
return CurIntVal;
}