[lld] r286445 - [ELF] Make SyntheticSection::writeTo pure virtual. NFC.

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 04:51:00 PST 2016


Author: evgeny777
Date: Thu Nov 10 06:50:59 2016
New Revision: 286445

URL: http://llvm.org/viewvc/llvm-project?rev=286445&view=rev
Log:
[ELF] Make SyntheticSection::writeTo pure virtual. NFC.

Modified:
    lld/trunk/ELF/SyntheticSections.h

Modified: lld/trunk/ELF/SyntheticSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.h?rev=286445&r1=286444&r2=286445&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.h (original)
+++ lld/trunk/ELF/SyntheticSections.h Thu Nov 10 06:50:59 2016
@@ -67,7 +67,7 @@ public:
       : InputSection<ELFT>(Flags, Type, Addralign, ArrayRef<uint8_t>(), Name,
                            InputSectionData::Synthetic) {}
 
-  virtual void writeTo(uint8_t *Buf) {}
+  virtual void writeTo(uint8_t *Buf) = 0;
   virtual size_t getSize() const { return this->Data.size(); }
 
   static bool classof(const InputSectionData *D) {




More information about the llvm-commits mailing list