[all-commits] [llvm/llvm-project] 47c4ce: [DWARFYAML] Use override instead of virtual for be...

Xing GUO via All-commits all-commits at lists.llvm.org
Thu Jul 9 03:51:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 47c4ce41a16412efe49da1715be3144861cbf50a
      https://github.com/llvm/llvm-project/commit/47c4ce41a16412efe49da1715be3144861cbf50a
  Author: Xing GUO <higuoxing at gmail.com>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M llvm/lib/ObjectYAML/DWARFEmitter.cpp

  Log Message:
  -----------
  [DWARFYAML] Use override instead of virtual for better safety.

Functions in DWARFYML::FixupVisitor are declared as
virtual functions in its base class DWARFYAML::Visitor.
We should use the mordern "override" keyword instead
of "virtual" for virtual functions in subclasses for
better safety.

Besides, the visibility is changed from private to
protected to make it consistent with
DWARFYAML::FixupVisitor class and DWARFYAML::Visitor
class.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D83452




More information about the All-commits mailing list