[llvm] r349606 - [llvm-objcopy] [COFF] Fix the Object forward declaration

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 18 23:45:06 PST 2018


Author: mstorsjo
Date: Tue Dec 18 23:45:06 2018
New Revision: 349606

URL: http://llvm.org/viewvc/llvm-project?rev=349606&view=rev
Log:
[llvm-objcopy] [COFF] Fix the Object forward declaration

This fixes build warnings with clang, and linker errors with MSVC.

Modified:
    llvm/trunk/tools/llvm-objcopy/COFF/Reader.h
    llvm/trunk/tools/llvm-objcopy/COFF/Writer.h

Modified: llvm/trunk/tools/llvm-objcopy/COFF/Reader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/COFF/Reader.h?rev=349606&r1=349605&r2=349606&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/COFF/Reader.h (original)
+++ llvm/trunk/tools/llvm-objcopy/COFF/Reader.h Tue Dec 18 23:45:06 2018
@@ -18,7 +18,7 @@ namespace llvm {
 namespace objcopy {
 namespace coff {
 
-class Object;
+struct Object;
 
 using object::COFFObjectFile;
 

Modified: llvm/trunk/tools/llvm-objcopy/COFF/Writer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/COFF/Writer.h?rev=349606&r1=349605&r2=349606&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/COFF/Writer.h (original)
+++ llvm/trunk/tools/llvm-objcopy/COFF/Writer.h Tue Dec 18 23:45:06 2018
@@ -19,7 +19,7 @@ namespace llvm {
 namespace objcopy {
 namespace coff {
 
-class Object;
+struct Object;
 
 class Writer {
 protected:




More information about the llvm-commits mailing list