diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-04-21 16:02:15 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-04-21 16:02:15 -0700 |
commit | 6202cbfe3614141e330501959a7322522b35f4e4 (patch) | |
tree | eff2460f47157f403e1504811a2c5e167e846368 /ir.h | |
parent | 7bcd5bedcc16ad1be989cef7a05e6aa7711213e9 (diff) |
Fix ir_dead_code for function refactoring.
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -52,6 +52,7 @@ public: */ /*@{*/ virtual class ir_variable * as_variable() { return NULL; } + virtual class ir_function * as_function() { return NULL; } virtual class ir_dereference * as_dereference() { return NULL; } virtual class ir_rvalue * as_rvalue() { return NULL; } virtual class ir_label * as_label() { return NULL; } @@ -243,6 +244,11 @@ class ir_function : public ir_instruction { public: ir_function(const char *name); + virtual ir_function *as_function() + { + return this; + } + virtual void accept(ir_visitor *v) { v->visit(this); |