diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
commit | d93e1dfac8711cfed1a9d9cd1876a788b83945cd (patch) | |
tree | 5896fa6c02a262a6148b215487e545d937de58b7 /include/lld/Core/Node.h | |
parent | 8d43286d630f9224de07809ea253e83ebb9cdee6 (diff) |
Notes
Diffstat (limited to 'include/lld/Core/Node.h')
-rw-r--r-- | include/lld/Core/Node.h | 11 |
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 |