diff options
author | Zachary Turner <zturner@google.com> | 2017-06-14 05:44:38 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-06-14 05:44:38 +0000 |
commit | 6bffe446598b6a13b3768d934c138c4954db5c8d (patch) | |
tree | 6cfc859cf8ccf09bd0f6048a53e3d9f797aa5bf0 /llvm/tools/yaml2obj/yaml2coff.cpp | |
parent | 63d789c02ee1d3bd6b788bdf24ac43b863c7e301 (diff) | |
download | bcm5719-llvm-6bffe446598b6a13b3768d934c138c4954db5c8d.tar.gz bcm5719-llvm-6bffe446598b6a13b3768d934c138c4954db5c8d.zip |
Fix some more errors.
llvm-svn: 305368
Diffstat (limited to 'llvm/tools/yaml2obj/yaml2coff.cpp')
-rw-r--r-- | llvm/tools/yaml2obj/yaml2coff.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/llvm/tools/yaml2obj/yaml2coff.cpp b/llvm/tools/yaml2obj/yaml2coff.cpp index b41cc9a8f06..1f302fdc45a 100644 --- a/llvm/tools/yaml2obj/yaml2coff.cpp +++ b/llvm/tools/yaml2obj/yaml2coff.cpp @@ -29,33 +29,6 @@ using namespace llvm; -namespace { -template <typename T> struct WeakishPtr { -public: - WeakishPtr() : Ref(nullptr) {} - - WeakishPtr(std::unique_ptr<T> Value) - : Ref(Value.get()), UniquePtr(std::move(Value)) {} - - WeakishPtr(std::unique_ptr<T> &&Value) - : Ref(Value.get()), UniquePtr(std::move(Value)) {} - - WeakishPtr<T> &operator=(std::unique_ptr<T> &&Value) { - Owned = std::move(Value); - Ref = Owned.get(); - return *this; - } - - T *get() { return Ref; } - T &operator*() { return *Ref; } - - operator bool() const { return Ref != nullptr; } - - T *Ref; - std::unique_ptr<T> Owned; -}; -} // namespace - /// This parses a yaml stream that represents a COFF object file. /// See docs/yaml2obj for the yaml scheema. struct COFFParser { |