| commit | e2473068d46cc27f6a863f2f50dd05f63d72d751 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Mon May 28 06:28:18 2007 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Mon May 28 06:28:18 2007 +0000 |
| tree | 3c7fc6db9a4852b554563aa0dcab6a6b3bf1682f | |
| parent | ac4471c963edbecb965cbdee26b8e976809cae1d [diff] |
Change GotoStmt's to have a pointer to the LabelStmt instead of a pointer to
the label identifier. Handle fwd references etc. This allows us to detect
uses of undefined labels and label redefinitions, such as:
t.c:2:12: error: redefinition of label 'abc'
abc: ; abc:
^
t.c:2:3: error: previous definition is here
abc: ; abc:
^
t.c:12:12: error: use of undeclared label 'hijl'
goto hijl;
^
llvm-svn: 39509