Implement a rough AddrExp::toConstElem()

This commit is contained in:
Christian Kamm
2008-08-02 22:54:36 +02:00
parent 41d6279a64
commit ad8e9ae852
2 changed files with 13 additions and 0 deletions

View File

@@ -865,6 +865,8 @@ struct AddrExp : UnaExp
MATCH implicitConvTo(Type *t);
Expression *castTo(Scope *sc, Type *t);
Expression *optimize(int result);
// LLVMDC
virtual llvm::Constant *toConstElem(IRState *irs);
};
struct PtrExp : UnaExp