diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-07 16:53:54 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-07 16:53:54 -0700 |
commit | c178c74c27ab292651dcf7da02a7d035366cae04 (patch) | |
tree | eab6b5c2e422b4d1640891343e35e39deee553b2 /ir.h | |
parent | 1799a0cd41e1a72673b4b469075e7abfcce8ec71 (diff) |
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.
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -157,6 +157,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" */ ir_constant *constant_value; |