search for: symbolkind

Displaying 1 result from an estimated 1 matches for "symbolkind".

Did you mean: symbol_end
2016 Apr 27
4
RFC: LLD symbol table redesign
...he class definitions would roughly look like this: struct Symbol { uint8_t Binding; unsigned Visibility : 2; // ... char Body[Max]; // Max is the maximum size of a SymbolBody SymbolBody *body() { return reinterpret_cast<SymbolBody *>(Body); } }; class SymbolBody { const unsigned SymbolKind : 8; // … Symbol &symbol() { return *reinterpret_cast<Symbol *>(reinterpret_cast<char *>(this) - offsetof(Symbol, Body)); } }; class Defined : public SymbolBody { ... }; As we load symbols from input files, the input file calls methods on the symbol table that add symb...