Add support for global constants, and for initializers for constants

Clean up parser somewhat by factoring out freeing of ID's into setname function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-09-18 04:00:54 +00:00
parent 475253b430
commit 1781acab34
2 changed files with 52 additions and 32 deletions

View File

@@ -123,6 +123,8 @@ true { return TRUE; }
false { return FALSE; }
declare { return DECLARE; }
global { return GLOBAL; }
constant { return CONSTANT; }
uninitialized { return UNINIT; }
implementation { return IMPLEMENTATION; }
\.\.\. { return DOTDOTDOT; }
string { return STRING; }