From: Martin Storsjo Date: Wed, 19 Dec 2018 07:45:06 +0000 (+0000) Subject: [llvm-objcopy] [COFF] Fix the Object forward declaration X-Git-Tag: llvmorg-8.0.0-rc1~1698 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a632b6472e55fb2ae049ee2be3933a479753ddb;p=platform%2Fupstream%2Fllvm.git [llvm-objcopy] [COFF] Fix the Object forward declaration This fixes build warnings with clang, and linker errors with MSVC. llvm-svn: 349606 --- diff --git a/llvm/tools/llvm-objcopy/COFF/Reader.h b/llvm/tools/llvm-objcopy/COFF/Reader.h index 0a6b17adeac6..c81a9751f180 100644 --- a/llvm/tools/llvm-objcopy/COFF/Reader.h +++ b/llvm/tools/llvm-objcopy/COFF/Reader.h @@ -18,7 +18,7 @@ namespace llvm { namespace objcopy { namespace coff { -class Object; +struct Object; using object::COFFObjectFile; diff --git a/llvm/tools/llvm-objcopy/COFF/Writer.h b/llvm/tools/llvm-objcopy/COFF/Writer.h index e23276664ee2..397fda02ee98 100644 --- a/llvm/tools/llvm-objcopy/COFF/Writer.h +++ b/llvm/tools/llvm-objcopy/COFF/Writer.h @@ -19,7 +19,7 @@ namespace llvm { namespace objcopy { namespace coff { -class Object; +struct Object; class Writer { protected: