aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/Lexer.l
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-03 01:49:25 +0000
committerChris Lattner <sabre@nondot.org>2001-10-03 01:49:25 +0000
commitdf7306f1b93953ce99a8e4dadf74ac8f1d5686dc (patch)
tree2e7bc9376583d8ebf9611c15b0fd48e77fb13dd8 /lib/AsmParser/Lexer.l
parentfe5e584cd9df2e1c4c593137d0b5ab696e2d7e36 (diff)
downloadexternal_llvm-df7306f1b93953ce99a8e4dadf74ac8f1d5686dc.zip
external_llvm-df7306f1b93953ce99a8e4dadf74ac8f1d5686dc.tar.gz
external_llvm-df7306f1b93953ce99a8e4dadf74ac8f1d5686dc.tar.bz2
* Add support for null as a constant
* Allow multiple definitions of a type with the same name as long as they are the same type * Eagerly resolve types to allow #2 to work instead of after the whole const pool has been processed * Change grammar to require a const before a local constant definition git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/Lexer.l')
-rw-r--r--lib/AsmParser/Lexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l
index 06b197d..642496d 100644
--- a/lib/AsmParser/Lexer.l
+++ b/lib/AsmParser/Lexer.l
@@ -124,6 +124,7 @@ false { return FALSE; }
declare { return DECLARE; }
global { return GLOBAL; }
constant { return CONSTANT; }
+const { return CONST; }
uninitialized { return UNINIT; }
implementation { return IMPLEMENTATION; }
\.\.\. { return DOTDOTDOT; }