[PATCH] D41143: Fix the type of the Discared section

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 17:12:08 PST 2017


ruiu added inline comments.


================
Comment at: ELF/InputSection.cpp:326
 
-InputSectionBase InputSectionBase::Discarded;
+InputSection InputSection::Discarded;
+
----------------
I wonder if you can avoid adding a new constructor by

  InputSection InputSection::Discard(0, 0, 0, ArrayRef<uint8_t>(), "");


https://reviews.llvm.org/D41143





More information about the llvm-commits mailing list