summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:53:54 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:53:54 -0700
commitc178c74c27ab292651dcf7da02a7d035366cae04 (patch)
treeeab6b5c2e422b4d1640891343e35e39deee553b2 /ir.h
parent1799a0cd41e1a72673b4b469075e7abfcce8ec71 (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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index fee23b2582..13d07155a4 100644
--- a/ir.h
+++ b/ir.h
@@ -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;