[lld] c318746 - [lld-macho] Fix -Wsuggest-override after D99633. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 2 17:04:15 PDT 2021
Author: Fangrui Song
Date: 2021-04-02T17:04:11-07:00
New Revision: c318746345cc68ecb3c1ac420baa2102e83f716f
URL: https://github.com/llvm/llvm-project/commit/c318746345cc68ecb3c1ac420baa2102e83f716f
DIFF: https://github.com/llvm/llvm-project/commit/c318746345cc68ecb3c1ac420baa2102e83f716f.diff
LOG: [lld-macho] Fix -Wsuggest-override after D99633. NFC
Added:
Modified:
lld/MachO/Writer.cpp
Removed:
################################################################################
diff --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp
index 01f6d4ff9c10..f37322bb3ca4 100644
--- a/lld/MachO/Writer.cpp
+++ b/lld/MachO/Writer.cpp
@@ -175,12 +175,12 @@ template <class LP> class LCSegment : public LoadCommand {
public:
LCSegment(StringRef name, OutputSegment *seg) : name(name), seg(seg) {}
- uint32_t getSize() const {
+ uint32_t getSize() const override {
return sizeof(typename LP::segment_command) +
seg->numNonHiddenSections() * sizeof(typename LP::section);
}
- void writeTo(uint8_t *buf) const {
+ void writeTo(uint8_t *buf) const override {
using SegmentCommand = typename LP::segment_command;
using Section = typename LP::section;
More information about the llvm-commits
mailing list