[llvm-objcopy] [COFF] Fix the Object forward declaration
authorMartin Storsjo <martin@martin.st>
Wed, 19 Dec 2018 07:45:06 +0000 (07:45 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 19 Dec 2018 07:45:06 +0000 (07:45 +0000)
This fixes build warnings with clang, and linker errors with MSVC.

llvm-svn: 349606

llvm/tools/llvm-objcopy/COFF/Reader.h
llvm/tools/llvm-objcopy/COFF/Writer.h

index 0a6b17adeac6565903f37a575c4952ba8ceee55e..c81a9751f1804cd83f60f2ab93bdcca46a191b8a 100644 (file)
@@ -18,7 +18,7 @@ namespace llvm {
 namespace objcopy {
 namespace coff {
 
-class Object;
+struct Object;
 
 using object::COFFObjectFile;
 
index e23276664ee208d0a18596a539124f27dabffe6a..397fda02ee980761333e12d6105c64a6c38579ea 100644 (file)
@@ -19,7 +19,7 @@ namespace llvm {
 namespace objcopy {
 namespace coff {
 
-class Object;
+struct Object;
 
 class Writer {
 protected: