- Timestamp:
- Feb 20, 2018, 3:13:40 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 599fbb6
- Parents:
- b060aba
- Location:
- src/SymTab
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.cc
rb060aba r78d69da7 457 457 458 458 // add to indexer 459 tables->idTable[ name ][ mangleName ] = { decl, baseExpr, deleteStmt };459 tables->idTable[ name ][ mangleName ] = IdData{ decl, baseExpr, deleteStmt }; 460 460 ++tables->size; 461 461 } -
src/SymTab/Indexer.h
rb060aba r78d69da7 46 46 /// non-null if this declaration is deleted 47 47 BaseSyntaxNode * deleteStmt = nullptr; 48 49 // NOTE: shouldn't need either of these constructors, but gcc-4 does not properly support initializer lists with default members. 50 IdData() = default; 51 IdData( DeclarationWithType * id, Expression * baseExpr, BaseSyntaxNode * deleteStmt ) : id( id ), baseExpr( baseExpr ), deleteStmt( deleteStmt ) {} 48 52 49 53 Expression * combine() const;
Note: See TracChangeset
for help on using the changeset viewer.