Lines Matching defs:Symbol

25 std::string toString(coff::Symbol &b);
27 // There are two different ways to convert an Archive::Symbol to a string:
30 std::string toCOFFString(const coff::Archive::Symbol &b);
45 class Symbol {
74 void replaceKeepingName(Symbol *other, size_t size);
89 explicit Symbol(Kind k, StringRef n = "")
120 // Symbol name length. Assume symbol lengths fit in a 32-bit integer.
128 class Defined : public Symbol {
130 Defined(Kind k, StringRef n) : Symbol(k, n) {}
132 static bool classof(const Symbol *s) { return s->kind() <= LastDefinedKind; }
148 friend Symbol;
154 static bool classof(const Symbol *s) {
180 static bool classof(const Symbol *s) {
200 static bool classof(const Symbol *s) {
225 static bool classof(const Symbol *s) {
249 static bool classof(const Symbol *s) {
267 class LazyArchive : public Symbol {
269 LazyArchive(ArchiveFile *f, const Archive::Symbol s)
270 : Symbol(LazyArchiveKind, s.getName()), file(f), sym(s) {}
272 static bool classof(const Symbol *s) { return s->kind() == LazyArchiveKind; }
277 const Archive::Symbol sym;
280 class LazyObject : public Symbol {
283 : Symbol(LazyObjectKind, n), file(f) {}
284 static bool classof(const Symbol *s) { return s->kind() == LazyObjectKind; }
289 class Undefined : public Symbol {
291 explicit Undefined(StringRef n) : Symbol(UndefinedKind, n) {}
293 static bool classof(const Symbol *s) { return s->kind() == UndefinedKind; }
299 Symbol *weakAlias = nullptr;
319 static bool classof(const Symbol *s) {
343 static bool classof(const Symbol *s) {
366 static bool classof(const Symbol *s) {
425 // A buffer class that is large enough to hold any Symbol-derived
442 void replaceSymbol(Symbol *s, ArgT &&... arg) {
444 "Symbol types must be trivially destructible");
445 static_assert(sizeof(T) <= sizeof(SymbolUnion), "Symbol too small");
448 assert(static_cast<Symbol *>(static_cast<T *>(nullptr)) == nullptr &&
449 "Not a Symbol");