mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 09:37:03 +08:00
Make Lazy's ctro protected because it shouldn't be instantiated directly.
llvm-svn: 275715
This commit is contained in:
@@ -320,14 +320,15 @@ public:
|
||||
// the same name, it will ask the Lazy to load a file.
|
||||
class Lazy : public SymbolBody {
|
||||
public:
|
||||
Lazy(SymbolBody::Kind K, StringRef Name, uint8_t Type)
|
||||
: SymbolBody(K, Name, llvm::ELF::STV_DEFAULT, Type) {}
|
||||
|
||||
static bool classof(const SymbolBody *S) { return S->isLazy(); }
|
||||
|
||||
// Returns an object file for this symbol, or a nullptr if the file
|
||||
// was already returned.
|
||||
std::unique_ptr<InputFile> fetch();
|
||||
|
||||
protected:
|
||||
Lazy(SymbolBody::Kind K, StringRef Name, uint8_t Type)
|
||||
: SymbolBody(K, Name, llvm::ELF::STV_DEFAULT, Type) {}
|
||||
};
|
||||
|
||||
// LazyArchive symbols represents symbols in archive files.
|
||||
|
||||
Reference in New Issue
Block a user