summaryrefslogtreecommitdiff
path: root/include/lld/Core/Node.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lld/Core/Node.h')
-rw-r--r--include/lld/Core/Node.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/lld/Core/Node.h b/include/lld/Core/Node.h
index cd38fbd4a482..8de0ecdbba6a 100644
--- a/include/lld/Core/Node.h
+++ b/include/lld/Core/Node.h
@@ -57,7 +57,7 @@ private:
class FileNode : public Node {
public:
explicit FileNode(std::unique_ptr<File> f)
- : Node(Node::Kind::File), _file(std::move(f)), _asNeeded(false) {}
+ : Node(Node::Kind::File), _file(std::move(f)) {}
static bool classof(const Node *a) {
return a->kind() == Node::Kind::File;
@@ -65,12 +65,8 @@ public:
File *getFile() { return _file.get(); }
- void setAsNeeded(bool val) { _asNeeded = val; }
- bool asNeeded() const { return _asNeeded; }
-
protected:
std::unique_ptr<File> _file;
- bool _asNeeded;
};
} // namespace lld