From c178c74c27ab292651dcf7da02a7d035366cae04 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 7 Apr 2010 16:53:54 -0700 Subject: [PATCH] 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. --- ir.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir.h b/ir.h index fee23b25829..13d07155a42 100644 --- a/ir.h +++ b/ir.h @@ -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" */