[llvm-bugs] [Bug 37733] New: AVRAsmBackend.cpp: fails to build on an override

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 7 04:42:17 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37733

            Bug ID: 37733
           Summary: AVRAsmBackend.cpp: fails to build on an override
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AVR
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org

cd
"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/lib/Target/AVR/MCTargetDesc"
&& /usr/bin/g++-6   -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/lib/Target/AVR/MCTargetDesc"
-I"/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc"
-I"/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR"
-I"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/lib/Target/AVR"
-I"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/include"
-I"/build/llvm-toolchain-snapshot-7~svn334179/include"  -std=c++0x
-fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files -fPIC
-fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-ffunction-sections -fdata-sections -O2 -DNDEBUG    -fno-exceptions -o
CMakeFiles/LLVMAVRDesc.dir/AVRAsmBackend.cpp.o -c
"/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp"
In file included from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:14:0:
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:43:8:
error: 'void llvm::AVRAsmBackend::applyFixup(const llvm::MCAssembler&, const
llvm::MCFixup&, const llvm::MCValue&, llvm::MutableArrayRef<char>, uint64_t,
bool) const' marked 'override', but does not override
   void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
        ^~~~~~~~~~
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:53:8:
error: 'bool llvm::AVRAsmBackend::mayNeedRelaxation(const llvm::MCInst&) const'
marked 'override', but does not override
   bool mayNeedRelaxation(const MCInst &Inst) const override { return false; }
        ^~~~~~~~~~~~~~~~~
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:
In function 'llvm::MCAsmBackend* llvm::createAVRAsmBackend(const llvm::Target&,
const llvm::MCSubtargetInfo&, const llvm::MCRegisterInfo&, const
llvm::MCTargetOptions&)':
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:481:57:
error: invalid new-expression of abstract class type 'llvm::AVRAsmBackend'
   return new AVRAsmBackend(STI.getTargetTriple().getOS());
                                                         ^
In file included from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:14:0:
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:32:7:
note:   because the following virtual functions are pure within
'llvm::AVRAsmBackend':
 class AVRAsmBackend : public MCAsmBackend {
       ^~~~~~~~~~~~~
In file included from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:21:0,
                 from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:14:
/build/llvm-toolchain-snapshot-7~svn334179/include/llvm/MC/MCAsmBackend.h:97:16:
note:  virtual void llvm::MCAsmBackend::applyFixup(const llvm::MCAssembler&,
const llvm::MCFixup&, const llvm::MCValue&, llvm::MutableArrayRef<char>,
uint64_t, bool, const llvm::MCSubtargetInfo*) const
   virtual void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
                ^~~~~~~~~~
/build/llvm-toolchain-snapshot-7~svn334179/include/llvm/MC/MCAsmBackend.h:116:16:
note:         virtual bool llvm::MCAsmBackend::mayNeedRelaxation(const
llvm::MCInst&, const llvm::MCSubtargetInfo&) const
   virtual bool mayNeedRelaxation(const MCInst &Inst,
                ^~~~~~~~~~~~~~~~~

since at least r334179

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180607/009ddc85/attachment.html>


More information about the llvm-bugs mailing list