Add ir_call call to represent function calls.

This commit is contained in:
Ian Romanick
2010-03-11 14:34:27 -08:00
parent d27ec2461b
commit ed45ec6a51
6 changed files with 52 additions and 2 deletions

10
ir.cpp
View File

@@ -108,3 +108,13 @@ ir_function::ir_function(void)
{
/* empty */
}
ir_call *
ir_call::get_error_instruction()
{
ir_call *call = new ir_call;
call->type = glsl_error_type;
return call;
}