[lld] r202626 - [C++11] Switch from LLVM_FINAL to just "final" now that all of LLVM is
Chandler Carruth
chandlerc at gmail.com
Sun Mar 2 01:35:34 PST 2014
Author: chandlerc
Date: Sun Mar 2 03:35:33 2014
New Revision: 202626
URL: http://llvm.org/viewvc/llvm-project?rev=202626&view=rev
Log:
[C++11] Switch from LLVM_FINAL to just "final" now that all of LLVM is
requiring MSVC 2012 or newer.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.h
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.h
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h
lld/trunk/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h
lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
lld/trunk/lib/ReaderWriter/ELF/X86/X86LinkingContext.h
lld/trunk/lib/ReaderWriter/ELF/X86/X86TargetHandler.h
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationHandler.h
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.h
lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonLinkingContext.h Sun Mar 2 03:35:33 2014
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h Sun Mar 2 03:35:33 2014
@@ -19,7 +19,7 @@ namespace elf {
class HexagonLinkingContext;
class HexagonTargetHandler;
-class HexagonTargetRelocationHandler LLVM_FINAL :
+class HexagonTargetRelocationHandler final :
public TargetRelocationHandler<HexagonELFType> {
public:
HexagonTargetRelocationHandler(HexagonLinkingContext &context,
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.cpp Sun Mar 2 03:35:33 2014
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h Sun Mar 2 03:35:33 2014
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.h Sun Mar 2 03:35:33 2014
@@ -32,7 +32,7 @@ typedef llvm::object::ELFType<llvm::supp
template <class ELFType> class MipsTargetLayout;
-class MipsLinkingContext LLVM_FINAL : public ELFLinkingContext {
+class MipsLinkingContext final : public ELFLinkingContext {
public:
MipsLinkingContext(llvm::Triple triple);
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h Sun Mar 2 03:35:33 2014
@@ -16,7 +16,7 @@ namespace elf {
class MipsTargetHandler;
-class MipsTargetRelocationHandler LLVM_FINAL
+class MipsTargetRelocationHandler final
: public TargetRelocationHandler<Mips32ElELFType> {
public:
MipsTargetRelocationHandler(MipsLinkingContext &context,
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsTargetHandler.h Sun Mar 2 03:35:33 2014
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/PPC/PPCLinkingContext.h Sun Mar 2 03:35:33 2014
@@ -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>(
Modified: lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h Sun Mar 2 03:35:33 2014
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/ELF/X86/X86LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86/X86LinkingContext.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86/X86LinkingContext.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86/X86LinkingContext.h Sun Mar 2 03:35:33 2014
@@ -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>(
Modified: lld/trunk/lib/ReaderWriter/ELF/X86/X86TargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86/X86TargetHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86/X86TargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86/X86TargetHandler.h Sun Mar 2 03:35:33 2014
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h Sun Mar 2 03:35:33 2014
@@ -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>(
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationHandler.h Sun Mar 2 03:35:33 2014
@@ -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,
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64RelocationPass.cpp Sun Mar 2 03:35:33 2014
@@ -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)
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.h Sun Mar 2 03:35:33 2014
@@ -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);
Modified: lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h?rev=202626&r1=202625&r2=202626&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h Sun Mar 2 03:35:33 2014
@@ -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,
More information about the llvm-commits
mailing list