Did some renaming and cleanup: Renamed EXPR_SEGMENT to EXPR_SECTION, since
this is what it really is. Added a real EXPR_SECTION which is now used in the linker to represent the run address of a segment, provided that it is requested to be defined. Changed some named in use of EXPR_MEMAREA. Added handling of the new EXPR_SEGMENT to both, the binary and o65 output format. git-svn-id: svn://svn.cc65.org/cc65/trunk@1769 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -69,7 +69,7 @@ Export* GetExprExport (ExprNode* Expr);
|
||||
/* Get the exported symbol for a symbol expression node */
|
||||
|
||||
Section* GetExprSection (ExprNode* Expr);
|
||||
/* Get the segment for a segment expression node */
|
||||
/* Get the segment for a section expression node */
|
||||
|
||||
long GetExprVal (ExprNode* Expr);
|
||||
/* Get the value of a constant expression */
|
||||
@@ -77,12 +77,15 @@ long GetExprVal (ExprNode* Expr);
|
||||
ExprNode* LiteralExpr (long Val, ObjData* O);
|
||||
/* Return an expression tree that encodes the given literal value */
|
||||
|
||||
ExprNode* MemExpr (Memory* Mem, long Offs, ObjData* O);
|
||||
ExprNode* MemoryExpr (Memory* Mem, long Offs, ObjData* O);
|
||||
/* Return an expression tree that encodes an offset into the memory area */
|
||||
|
||||
ExprNode* SegExpr (Section* Sec, long Offs, ObjData* O);
|
||||
ExprNode* SegmentExpr (Segment* Seg, long Offs, ObjData* O);
|
||||
/* Return an expression tree that encodes an offset into a segment */
|
||||
|
||||
ExprNode* SectionExpr (Section* Sec, long Offs, ObjData* O);
|
||||
/* Return an expression tree that encodes an offset into a section */
|
||||
|
||||
void DumpExpr (const ExprNode* Expr);
|
||||
/* Dump an expression tree to stdout */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user