forked from OSchip/llvm-project
[C++11] Switch from LLVM_FINAL to just "final" now that all of LLVM is
requiring MSVC 2012 or newer. llvm-svn: 202626
This commit is contained in:
parent
a798a9db93
commit
6eface7c9d
|
@ -20,7 +20,7 @@ namespace elf {
|
|||
|
||||
typedef llvm::object::ELFType<llvm::support::little, 2, false> HexagonELFType;
|
||||
|
||||
class HexagonLinkingContext LLVM_FINAL : public ELFLinkingContext {
|
||||
class HexagonLinkingContext final : public ELFLinkingContext {
|
||||
public:
|
||||
HexagonLinkingContext(llvm::Triple triple);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace elf {
|
|||
class HexagonLinkingContext;
|
||||
class HexagonTargetHandler;
|
||||
|
||||
class HexagonTargetRelocationHandler LLVM_FINAL :
|
||||
class HexagonTargetRelocationHandler final :
|
||||
public TargetRelocationHandler<HexagonELFType> {
|
||||
public:
|
||||
HexagonTargetRelocationHandler(HexagonLinkingContext &context,
|
||||
|
|
|
@ -235,7 +235,7 @@ protected:
|
|||
/// @}
|
||||
};
|
||||
|
||||
class DynamicGOTPLTPass LLVM_FINAL : public GOTPLTPass<DynamicGOTPLTPass> {
|
||||
class DynamicGOTPLTPass final : public GOTPLTPass<DynamicGOTPLTPass> {
|
||||
public:
|
||||
DynamicGOTPLTPass(const elf::HexagonLinkingContext &ctx) : GOTPLTPass(ctx) {
|
||||
_got0 = new (_file._alloc) HexagonGOTPLT0Atom(_file);
|
||||
|
|
|
@ -24,7 +24,7 @@ class HexagonLinkingContext;
|
|||
|
||||
/// \brief TargetLayout for Hexagon
|
||||
template <class HexagonELFType>
|
||||
class HexagonTargetLayout LLVM_FINAL : public TargetLayout<HexagonELFType> {
|
||||
class HexagonTargetLayout final : public TargetLayout<HexagonELFType> {
|
||||
public:
|
||||
enum HexagonSectionOrder {
|
||||
ORDER_SDATA = 205
|
||||
|
@ -103,7 +103,7 @@ private:
|
|||
};
|
||||
|
||||
/// \brief TargetHandler for Hexagon
|
||||
class HexagonTargetHandler LLVM_FINAL :
|
||||
class HexagonTargetHandler final :
|
||||
public DefaultTargetHandler<HexagonELFType> {
|
||||
public:
|
||||
HexagonTargetHandler(HexagonLinkingContext &targetInfo);
|
||||
|
|
|
@ -32,7 +32,7 @@ typedef llvm::object::ELFType<llvm::support::little, 2, false> Mips32ElELFType;
|
|||
|
||||
template <class ELFType> class MipsTargetLayout;
|
||||
|
||||
class MipsLinkingContext LLVM_FINAL : public ELFLinkingContext {
|
||||
class MipsLinkingContext final : public ELFLinkingContext {
|
||||
public:
|
||||
MipsLinkingContext(llvm::Triple triple);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace elf {
|
|||
|
||||
class MipsTargetHandler;
|
||||
|
||||
class MipsTargetRelocationHandler LLVM_FINAL
|
||||
class MipsTargetRelocationHandler final
|
||||
: public TargetRelocationHandler<Mips32ElELFType> {
|
||||
public:
|
||||
MipsTargetRelocationHandler(MipsLinkingContext &context,
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace elf {
|
|||
|
||||
/// \brief TargetLayout for Mips
|
||||
template <class ELFType>
|
||||
class MipsTargetLayout LLVM_FINAL : public TargetLayout<ELFType> {
|
||||
class MipsTargetLayout final : public TargetLayout<ELFType> {
|
||||
public:
|
||||
MipsTargetLayout(const MipsLinkingContext &ctx)
|
||||
: TargetLayout<ELFType>(ctx),
|
||||
|
@ -67,7 +67,7 @@ public:
|
|||
};
|
||||
|
||||
/// \brief TargetHandler for Mips
|
||||
class MipsTargetHandler LLVM_FINAL
|
||||
class MipsTargetHandler final
|
||||
: public DefaultTargetHandler<Mips32ElELFType> {
|
||||
public:
|
||||
MipsTargetHandler(MipsLinkingContext &context);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
namespace lld {
|
||||
namespace elf {
|
||||
|
||||
class PPCLinkingContext LLVM_FINAL : public ELFLinkingContext {
|
||||
class PPCLinkingContext final : public ELFLinkingContext {
|
||||
public:
|
||||
PPCLinkingContext(llvm::Triple triple)
|
||||
: ELFLinkingContext(triple, std::unique_ptr<TargetHandlerBase>(
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
PPCTargetLayout(PPCLinkingContext &context) : TargetLayout<ELFT>(context) {}
|
||||
};
|
||||
|
||||
class PPCTargetRelocationHandler LLVM_FINAL
|
||||
class PPCTargetRelocationHandler final
|
||||
: public TargetRelocationHandler<PPCELFType> {
|
||||
public:
|
||||
PPCTargetRelocationHandler(PPCLinkingContext &context,
|
||||
|
@ -39,7 +39,7 @@ protected:
|
|||
PPCTargetLayout<PPCELFType> &_ppcTargetLayout;
|
||||
};
|
||||
|
||||
class PPCTargetHandler LLVM_FINAL
|
||||
class PPCTargetHandler final
|
||||
: public DefaultTargetHandler<PPCELFType> {
|
||||
public:
|
||||
PPCTargetHandler(PPCLinkingContext &context);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
class X86LinkingContext LLVM_FINAL : public ELFLinkingContext {
|
||||
class X86LinkingContext final : public ELFLinkingContext {
|
||||
public:
|
||||
X86LinkingContext(llvm::Triple triple)
|
||||
: ELFLinkingContext(triple, std::unique_ptr<TargetHandlerBase>(
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
X86TargetLayout(X86LinkingContext &context) : TargetLayout<ELFT>(context) {}
|
||||
};
|
||||
|
||||
class X86TargetRelocationHandler LLVM_FINAL
|
||||
class X86TargetRelocationHandler final
|
||||
: public TargetRelocationHandler<X86ELFType> {
|
||||
public:
|
||||
X86TargetRelocationHandler(X86LinkingContext &context,
|
||||
|
@ -44,7 +44,7 @@ protected:
|
|||
X86TargetLayout<X86ELFType> &_x86TargetLayout;
|
||||
};
|
||||
|
||||
class X86TargetHandler LLVM_FINAL
|
||||
class X86TargetHandler final
|
||||
: public DefaultTargetHandler<X86ELFType> {
|
||||
public:
|
||||
X86TargetHandler(X86LinkingContext &context);
|
||||
|
|
|
@ -27,7 +27,7 @@ enum {
|
|||
LLD_R_X86_64_GOTRELINDEX = 1024,
|
||||
};
|
||||
|
||||
class X86_64LinkingContext LLVM_FINAL : public ELFLinkingContext {
|
||||
class X86_64LinkingContext final : public ELFLinkingContext {
|
||||
public:
|
||||
X86_64LinkingContext(llvm::Triple triple)
|
||||
: ELFLinkingContext(triple, std::unique_ptr<TargetHandlerBase>(
|
||||
|
|
|
@ -19,7 +19,7 @@ class X86_64LinkingContext;
|
|||
|
||||
template <class ELFT> class X86_64TargetLayout;
|
||||
|
||||
class X86_64TargetRelocationHandler LLVM_FINAL
|
||||
class X86_64TargetRelocationHandler final
|
||||
: public TargetRelocationHandler<X86_64ELFType> {
|
||||
public:
|
||||
X86_64TargetRelocationHandler(const X86_64LinkingContext &context,
|
||||
|
|
|
@ -294,7 +294,7 @@ protected:
|
|||
/// entry, that entry is statically bound.
|
||||
///
|
||||
/// TLS always assumes module 1 and attempts to remove indirection.
|
||||
class StaticRelocationPass LLVM_FINAL
|
||||
class StaticRelocationPass final
|
||||
: public RelocationPass<StaticRelocationPass> {
|
||||
public:
|
||||
StaticRelocationPass(const elf::X86_64LinkingContext &ctx)
|
||||
|
@ -327,7 +327,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class DynamicRelocationPass LLVM_FINAL
|
||||
class DynamicRelocationPass final
|
||||
: public RelocationPass<DynamicRelocationPass> {
|
||||
public:
|
||||
DynamicRelocationPass(const elf::X86_64LinkingContext &ctx)
|
||||
|
|
|
@ -28,7 +28,7 @@ public:
|
|||
: TargetLayout<ELFT>(context) {}
|
||||
};
|
||||
|
||||
class X86_64TargetHandler LLVM_FINAL
|
||||
class X86_64TargetHandler final
|
||||
: public DefaultTargetHandler<X86_64ELFType> {
|
||||
public:
|
||||
X86_64TargetHandler(X86_64LinkingContext &context);
|
||||
|
|
|
@ -25,7 +25,7 @@ class COFFDefinedAtom;
|
|||
/// example, if atom X has a reference to atom Y with offsetInAtom=8, that
|
||||
/// means that the address starting at 8th byte of the content of atom X needs
|
||||
/// to be fixed up so that the address points to atom Y's address.
|
||||
class COFFReference LLVM_FINAL : public Reference {
|
||||
class COFFReference final : public Reference {
|
||||
public:
|
||||
COFFReference(const Atom *target, uint32_t offsetInAtom, uint16_t relocType,
|
||||
Reference::KindNamespace ns = Reference::KindNamespace::COFF,
|
||||
|
|
Loading…
Reference in New Issue