Add tracking for extension based warnings

Using '#extension foo: warn' instructs the compiler to generate a
warning when some feature of the extension 'foo' is used.  This patch
adds some infrastructure needed to support that for variables.

Similar changes will be needed for types and built-in functions.
This commit is contained in:
Ian Romanick 2010-04-07 16:53:54 -07:00
parent 1799a0cd41
commit c178c74c27
1 changed files with 5 additions and 0 deletions

5
ir.h
View File

@ -156,6 +156,11 @@ public:
*/
unsigned array_lvalue:1;
/**
* Emit a warning if this variable is accessed.
*/
const char *warn_extension;
/**
* Value assigned in the initializer of a variable declared "const"
*/