summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit571a6b07b6479660f128918880eae927c3c67e09 (patch)
tree9b40c14f4e6cebc321adc94b79b269864edc34ba /llvm/lib/AsmParser/Lexer.l
parent02a9c0a081f0d30f9534141c09bbdbb0c9486ecc (diff)
downloadbcm5719-llvm-571a6b07b6479660f128918880eae927c3c67e09.tar.gz
bcm5719-llvm-571a6b07b6479660f128918880eae927c3c67e09.zip
* 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 llvm-svn: 699
Diffstat (limited to 'llvm/lib/AsmParser/Lexer.l')
-rw-r--r--llvm/lib/AsmParser/Lexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/Lexer.l b/llvm/lib/AsmParser/Lexer.l
index 06b197d4486..642496d994a 100644
--- a/llvm/lib/AsmParser/Lexer.l
+++ b/llvm/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; }
OpenPOWER on IntegriCloud