@@ -37,7 +37,7 @@ class InputSectionBase;
37
37
class SharedSymbol ;
38
38
class Symbol ;
39
39
class Undefined ;
40
- class LazyObject ;
40
+ class LazySymbol ;
41
41
class InputFile ;
42
42
43
43
void printTraceSymbol (const Symbol &sym, StringRef name);
@@ -76,7 +76,7 @@ class Symbol {
76
76
CommonKind,
77
77
SharedKind,
78
78
UndefinedKind,
79
- LazyObjectKind ,
79
+ LazyKind ,
80
80
};
81
81
82
82
Kind kind () const { return static_cast <Kind>(symbolKind); }
@@ -181,7 +181,7 @@ class Symbol {
181
181
182
182
bool isLocal () const { return binding == llvm::ELF::STB_LOCAL; }
183
183
184
- bool isLazy () const { return symbolKind == LazyObjectKind ; }
184
+ bool isLazy () const { return symbolKind == LazyKind ; }
185
185
186
186
// True if this is an undefined weak symbol. This only works once
187
187
// all input files have been added.
@@ -237,7 +237,7 @@ class Symbol {
237
237
void resolve (const Undefined &other);
238
238
void resolve (const CommonSymbol &other);
239
239
void resolve (const Defined &other);
240
- void resolve (const LazyObject &other);
240
+ void resolve (const LazySymbol &other);
241
241
void resolve (const SharedSymbol &other);
242
242
243
243
// If this is a lazy symbol, extract an input file and add the symbol
@@ -471,7 +471,7 @@ class SharedSymbol : public Symbol {
471
471
uint32_t alignment;
472
472
};
473
473
474
- // LazyObject symbols represent symbols in object files between --start-lib and
474
+ // LazySymbol symbols represent symbols in object files between --start-lib and
475
475
// --end-lib options. LLD also handles traditional archives as if all the files
476
476
// in the archive are surrounded by --start-lib and --end-lib.
477
477
//
@@ -480,14 +480,14 @@ class SharedSymbol : public Symbol {
480
480
// and the lazy. We represent that with a lazy symbol with a weak binding. This
481
481
// means that code looking for undefined symbols normally also has to take lazy
482
482
// symbols into consideration.
483
- class LazyObject : public Symbol {
483
+ class LazySymbol : public Symbol {
484
484
public:
485
- LazyObject (InputFile &file)
486
- : Symbol(LazyObjectKind , &file, {}, llvm::ELF::STB_GLOBAL,
485
+ LazySymbol (InputFile &file)
486
+ : Symbol(LazyKind , &file, {}, llvm::ELF::STB_GLOBAL,
487
487
llvm::ELF::STV_DEFAULT, llvm::ELF::STT_NOTYPE) {}
488
- void overwrite (Symbol &sym) const { Symbol::overwrite (sym, LazyObjectKind ); }
488
+ void overwrite (Symbol &sym) const { Symbol::overwrite (sym, LazyKind ); }
489
489
490
- static bool classof (const Symbol *s) { return s->kind () == LazyObjectKind ; }
490
+ static bool classof (const Symbol *s) { return s->kind () == LazyKind ; }
491
491
};
492
492
493
493
// Some linker-generated symbols need to be created as
@@ -541,7 +541,7 @@ union SymbolUnion {
541
541
alignas (CommonSymbol) char b[sizeof (CommonSymbol)];
542
542
alignas (Undefined) char c[sizeof (Undefined)];
543
543
alignas (SharedSymbol) char d[sizeof (SharedSymbol)];
544
- alignas (LazyObject ) char e[sizeof (LazyObject )];
544
+ alignas (LazySymbol ) char e[sizeof (LazySymbol )];
545
545
};
546
546
547
547
template <typename ... T> Defined *makeDefined (T &&...args) {
0 commit comments