This is an archive of the discontinued LLVM Phabricator instance.

Fix warnings about hidden virtual methods in CodeView.
ClosedPublic

Authored by seandree on Jun 20 2017, 4:44 PM.

Details

Summary

This warnings were introduced in PR https://reviews.llvm.org/D32928.
I have project that treats warnings as errors so I can't build llvm there.

In file included from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeRecordMapping.h:15:0,
                 from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeSerializer.h:13,
                 from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeTableBuilder.h:17,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.h:16,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.cpp:16:
/home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h:33:17: error: ‘virtual llvm::Error llvm::codeview::TypeVisitorCallbacks::visitTypeBegin(llvm::codeview::CVType&, llvm::codeview::TypeIndex)’ was hidden [-Werror=overloaded-virtual]
   virtual Error visitTypeBegin(CVType &Record, TypeIndex Index) {
                 ^
In file included from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeSerializer.h:13:0,
                 from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeTableBuilder.h:17,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.h:16,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.cpp:16:
/home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeRecordMapping.h:28:9: error:   by ‘virtual llvm::Error llvm::codeview::TypeRecordMapping::visitTypeBegin(llvm::codeview::CVType&)’ [-Werror=overloaded-virtual]
   Error visitTypeBegin(CVType &Record) override;
         ^
In file included from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeRecordMapping.h:15:0,
                 from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeSerializer.h:13,
                 from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeTableBuilder.h:17,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.h:16,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.cpp:16:
/home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h:33:17: error: ‘virtual llvm::Error llvm::codeview::TypeVisitorCallbacks::visitTypeBegin(llvm::codeview::CVType&, llvm::codeview::TypeIndex)’ was hidden [-Werror=overloaded-virtual]
   virtual Error visitTypeBegin(CVType &Record, TypeIndex Index) {
                 ^
In file included from /home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeTableBuilder.h:17:0,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.h:16,
                 from /home/sergey/git/llvm/llvm/tools/llilc/lib/ObjWriter/objwriter.cpp:16:
/home/sergey/git/llvm/llvm/include/llvm/DebugInfo/CodeView/TypeSerializer.h:96:9: error:   by ‘virtual llvm::Error llvm::codeview::TypeSerializer::visitTypeBegin(llvm::codeview::CVType&)’ [-Werror=overloaded-virtual]
   Error visitTypeBegin(CVType &Record) override;

Diff Detail

Repository
rL LLVM

Event Timeline

seandree created this revision.Jun 20 2017, 4:44 PM
seandree edited the summary of this revision. (Show Details)Jun 20 2017, 5:02 PM
zturner accepted this revision.Jun 22 2017, 10:41 AM
This revision is now accepted and ready to land.Jun 22 2017, 10:41 AM
This revision was automatically updated to reflect the committed changes.