From d99dafe2e4a385dd2a6c76da6d8258deb100657b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 20 Apr 2017 21:19:10 +0000 Subject: Vendor import of llvm trunk r300890: https://llvm.org/svn/llvm-project/llvm/trunk@300890 --- include/llvm/Object/Binary.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'include/llvm/Object/Binary.h') diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h index bdbe94301dc7..06788326ff57 100644 --- a/include/llvm/Object/Binary.h +++ b/include/llvm/Object/Binary.h @@ -15,10 +15,11 @@ #define LLVM_OBJECT_BINARY_H #include "llvm/ADT/Triple.h" -#include "llvm/Object/Error.h" -#include "llvm/Support/ErrorOr.h" -#include "llvm/Support/FileSystem.h" +#include "llvm/Support/Error.h" #include "llvm/Support/MemoryBuffer.h" +#include +#include +#include namespace llvm { @@ -29,9 +30,6 @@ namespace object { class Binary { private: - Binary() = delete; - Binary(const Binary &other) = delete; - unsigned int TypeID; protected: @@ -80,6 +78,8 @@ protected: } public: + Binary() = delete; + Binary(const Binary &other) = delete; virtual ~Binary(); StringRef getData() const; @@ -173,7 +173,7 @@ OwningBinary::OwningBinary(std::unique_ptr Bin, std::unique_ptr Buf) : Bin(std::move(Bin)), Buf(std::move(Buf)) {} -template OwningBinary::OwningBinary() {} +template OwningBinary::OwningBinary() = default; template OwningBinary::OwningBinary(OwningBinary &&Other) @@ -201,7 +201,9 @@ template const T* OwningBinary::getBinary() const { } Expected> createBinary(StringRef Path); -} -} -#endif +} // end namespace object + +} // end namespace llvm + +#endif // LLVM_OBJECT_BINARY_H -- cgit v1.2.3