[llvm] r272460 - Add a using declaration so that the overrides don't hide some of the

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 11 01:12:17 PDT 2016


Author: chandlerc
Date: Sat Jun 11 03:12:17 2016
New Revision: 272460

URL: http://llvm.org/viewvc/llvm-project?rev=272460&view=rev
Log:
Add a using declaration so that the overrides don't hide some of the
base class methods.

This was caught by GCC's -Woverloaded-virtual, not sure why it wasn't
caught by Clang's. =/

Modified:
    llvm/trunk/include/llvm/MC/MCObjectStreamer.h

Modified: llvm/trunk/include/llvm/MC/MCObjectStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectStreamer.h?rev=272460&r1=272459&r2=272460&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCObjectStreamer.h (original)
+++ llvm/trunk/include/llvm/MC/MCObjectStreamer.h Sat Jun 11 03:12:17 2016
@@ -140,6 +140,7 @@ public:
   void EmitGPRel64Value(const MCExpr *Value) override;
   bool EmitRelocDirective(const MCExpr &Offset, StringRef Name,
                           const MCExpr *Expr, SMLoc Loc) override;
+  using MCStreamer::emitFill;
   void emitFill(uint64_t NumBytes, uint8_t FillValue) override;
   void emitFill(const MCExpr &NumBytes, uint64_t FillValue,
                 SMLoc Loc = SMLoc()) override;




More information about the llvm-commits mailing list