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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/lld/Core/Node.h b/include/lld/Core/Node.h
index 8de0ecdbba6a..c30482409e7a 100644
--- a/include/lld/Core/Node.h
+++ b/include/lld/Core/Node.h
@@ -1,4 +1,4 @@
-//===- lld/Core/Node.h - Input file class ---------------------------------===//
+//===- lld/Core/Node.h - Input file class -----------------------*- C++ -*-===//
//
// The LLVM Linker
//
@@ -17,9 +17,8 @@
#define LLD_CORE_NODE_H
#include "lld/Core/File.h"
-#include "llvm/Option/ArgList.h"
+#include <algorithm>
#include <memory>
-#include <vector>
namespace lld {
@@ -29,8 +28,10 @@ namespace lld {
class Node {
public:
enum class Kind { File, GroupEnd };
+
explicit Node(Kind type) : _kind(type) {}
- virtual ~Node() {}
+ virtual ~Node() = default;
+
virtual Kind kind() const { return _kind; }
private:
@@ -69,6 +70,6 @@ protected:
std::unique_ptr<File> _file;
};
-} // namespace lld
+} // end namespace lld
#endif // LLD_CORE_NODE_H