Don't lose source position when returning values of constant symbols.

This commit is contained in:
Matt Pharr
2012-01-29 13:46:17 -08:00
parent c67a286aa6
commit 20dbf59420
2 changed files with 52 additions and 1 deletions

4
expr.h
View File

@@ -388,6 +388,10 @@ public:
with values given by the "vales" parameter. */
ConstExpr(ConstExpr *old, double *values);
/** Create ConstExpr with the same type and values as the given one,
but at the given position. */
ConstExpr(ConstExpr *old, SourcePos pos);
llvm::Value *GetValue(FunctionEmitContext *ctx) const;
const Type *GetType() const;
void Print() const;