Просмотр исходного кода

Add ir_function_signature::function_name

tags/mesa-7.9-rc1
Ian Romanick 16 лет назад
Родитель
Сommit
0f0ea58264
1 измененных файлов: 11 добавлений и 2 удалений
  1. 11
    2
      ir.h

+ 11
- 2
ir.h Просмотреть файл

@@ -144,6 +144,11 @@ public:
v->visit(this);
}

/**
* Get the name of the function for which this is a signature
*/
const char *function_name() const;

/**
* Function return type.
*
@@ -211,6 +216,11 @@ private:
*/
struct exec_list signatures;
};

inline const char *ir_function_signature::function_name() const
{
return function->name;
}
/*@}*/


@@ -379,8 +389,7 @@ public:
*/
const char *callee_name() const
{
/* FINISHME: This only works for functions that have definitions. */
return callee->definition->label;
return callee->function_name();
}

private:

Загрузка…
Отмена
Сохранить