Implement NullPointerExpr::GetConstant()

Also reworked TypeCastExpr::GetConstant() to just forward the request along
and moved the code that was previously there to handle uniform->varying
smears of function pointers to FunctionSymbolExpr::GetConstant().

Fixes issue #168.
This commit is contained in:
Matt Pharr
2012-01-31 09:37:39 -08:00
parent 1eec27f890
commit 25665f0841
2 changed files with 47 additions and 26 deletions

1
expr.h
View File

@@ -684,6 +684,7 @@ public:
const Type *GetType() const;
Expr *TypeCheck();
Expr *Optimize();
llvm::Constant *GetConstant(const Type *type) const;
void Print() const;
int EstimateCost() const;
};