Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lld/COFF/Symbols.h')
-rw-r--r--lld/COFF/Symbols.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lld/COFF/Symbols.h b/lld/COFF/Symbols.h
index ae7e3b5075e8..86ed2b321f0c 100644
--- a/lld/COFF/Symbols.h
+++ b/lld/COFF/Symbols.h
@@ -239,8 +239,7 @@ private:
// Undefined symbols.
class Undefined : public SymbolBody {
public:
- explicit Undefined(StringRef N, SymbolBody **S = nullptr)
- : SymbolBody(UndefinedKind, N), Alias(S) {}
+ explicit Undefined(StringRef N) : SymbolBody(UndefinedKind, N) {}
static bool classof(const SymbolBody *S) {
return S->kind() == UndefinedKind;
@@ -250,10 +249,7 @@ public:
// undefined symbol a second chance if it would remain undefined.
// If it remains undefined, it'll be replaced with whatever the
// Alias pointer points to.
- SymbolBody *getWeakAlias() { return Alias ? *Alias : nullptr; }
-
-private:
- SymbolBody **Alias;
+ SymbolBody *WeakAlias = nullptr;
};
// Windows-specific classes.