X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FNVPTX%2FNVPTXMCExpr.h;h=d39a394fe7508cd9058b251693c533af9acebd5b;hb=376a2e104f9ab97dd8f6c4fc52a656ad823d1a88;hp=8e0e225f584972df23f55e2de2992913f276fe90;hpb=c34a25d59d382aa00a94b3f0603ce8724c66606d;p=oota-llvm.git diff --git a/lib/Target/NVPTX/NVPTXMCExpr.h b/lib/Target/NVPTX/NVPTXMCExpr.h index 8e0e225f584..d39a394fe75 100644 --- a/lib/Target/NVPTX/NVPTXMCExpr.h +++ b/lib/Target/NVPTX/NVPTXMCExpr.h @@ -9,8 +9,8 @@ // Modeled after ARMMCExpr -#ifndef NVPTXMCEXPR_H -#define NVPTXMCEXPR_H +#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXMCEXPR_H +#define LLVM_LIB_TARGET_NVPTX_NVPTXMCEXPR_H #include "llvm/ADT/APFloat.h" #include "llvm/MC/MCExpr.h" @@ -61,18 +61,19 @@ public: /// @} - void PrintImpl(raw_ostream &OS) const; + void PrintImpl(raw_ostream &OS) const override; bool EvaluateAsRelocatableImpl(MCValue &Res, - const MCAsmLayout *Layout) const { + const MCAsmLayout *Layout, + const MCFixup *Fixup) const override { return false; } - void AddValueSymbols(MCAssembler *) const {}; - const MCSection *FindAssociatedSection() const { + void visitUsedExpr(MCStreamer &Streamer) const override {}; + const MCSection *FindAssociatedSection() const override { return nullptr; } // There are no TLS NVPTXMCExprs at the moment. - void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const {} + void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override {} static bool classof(const MCExpr *E) { return E->getKind() == MCExpr::Target;