Changeset 2a4b088 for src/CodeGen


Ignore:
Timestamp:
Feb 2, 2016, 2:00:37 PM (9 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
4789f44, b10c9959
Parents:
5721a6d
Message:

Make offsetof expressions work

Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r5721a6d r2a4b088  
    453453        }
    454454
     455        void CodeGenerator::visit( UntypedOffsetofExpr *offsetofExpr ) {
     456                assert( false );
     457        }
     458
    455459        void CodeGenerator::visit( OffsetofExpr *offsetofExpr ) {
    456460                // use GCC builtin
  • src/CodeGen/CodeGenerator.h

    r5721a6d r2a4b088  
    6161                virtual void visit( SizeofExpr *sizeofExpr );
    6262                virtual void visit( AlignofExpr *alignofExpr );
     63                virtual void visit( UntypedOffsetofExpr *offsetofExpr );
    6364                virtual void visit( OffsetofExpr *offsetofExpr );
    6465                virtual void visit( LogicalExpr *logicalExpr );
Note: See TracChangeset for help on using the changeset viewer.