Switch all uses of LLVM_FINAL to just use 'final', and remove the macro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2014-03-02 08:08:51 +00:00
parent a45e3ff4f2
commit 4eb03f049e
9 changed files with 8 additions and 18 deletions

View File

@ -106,16 +106,6 @@
#define LLVM_DELETED_FUNCTION #define LLVM_DELETED_FUNCTION
#endif #endif
/// LLVM_FINAL - Expands to 'final' if the compiler supports it.
/// Use to mark classes or virtual methods as final.
#if __has_feature(cxx_override_control) || \
(defined(__GXX_EXPERIMENTAL_CXX0X__) && __GNUC_PREREQ(4, 7)) || \
LLVM_MSC_PREREQ(1700)
#define LLVM_FINAL final
#else
#define LLVM_FINAL
#endif
/// LLVM_OVERRIDE - Expands to 'override' if the compiler supports it. /// LLVM_OVERRIDE - Expands to 'override' if the compiler supports it.
/// Use to mark virtual methods as overriding a base class method. /// Use to mark virtual methods as overriding a base class method.
#if __has_feature(cxx_override_control) || \ #if __has_feature(cxx_override_control) || \

View File

@ -241,7 +241,7 @@ unsigned TargetTransformInfo::getReductionCost(unsigned Opcode, Type *Ty,
namespace { namespace {
struct NoTTI LLVM_FINAL : ImmutablePass, TargetTransformInfo { struct NoTTI final : ImmutablePass, TargetTransformInfo {
const DataLayout *DL; const DataLayout *DL;
NoTTI() : ImmutablePass(ID), DL(0) { NoTTI() : ImmutablePass(ID), DL(0) {

View File

@ -25,7 +25,7 @@ using namespace llvm;
namespace { namespace {
class BasicTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo { class BasicTTI final : public ImmutablePass, public TargetTransformInfo {
const TargetMachine *TM; const TargetMachine *TM;
/// Estimate the overhead of scalarizing an instruction. Insert and Extract /// Estimate the overhead of scalarizing an instruction. Insert and Extract

View File

@ -32,7 +32,7 @@ void initializeAArch64TTIPass(PassRegistry &);
namespace { namespace {
class AArch64TTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo { class AArch64TTI final : public ImmutablePass, public TargetTransformInfo {
const AArch64TargetMachine *TM; const AArch64TargetMachine *TM;
const AArch64Subtarget *ST; const AArch64Subtarget *ST;
const AArch64TargetLowering *TLI; const AArch64TargetLowering *TLI;

View File

@ -32,7 +32,7 @@ void initializeARMTTIPass(PassRegistry &);
namespace { namespace {
class ARMTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo { class ARMTTI final : public ImmutablePass, public TargetTransformInfo {
const ARMBaseTargetMachine *TM; const ARMBaseTargetMachine *TM;
const ARMSubtarget *ST; const ARMSubtarget *ST;
const ARMTargetLowering *TLI; const ARMTargetLowering *TLI;

View File

@ -32,7 +32,7 @@ void initializePPCTTIPass(PassRegistry &);
namespace { namespace {
class PPCTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo { class PPCTTI final : public ImmutablePass, public TargetTransformInfo {
const PPCTargetMachine *TM; const PPCTargetMachine *TM;
const PPCSubtarget *ST; const PPCSubtarget *ST;
const PPCTargetLowering *TLI; const PPCTargetLowering *TLI;

View File

@ -35,7 +35,7 @@ void initializeAMDGPUTTIPass(PassRegistry &);
namespace { namespace {
class AMDGPUTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo { class AMDGPUTTI final : public ImmutablePass, public TargetTransformInfo {
const AMDGPUTargetMachine *TM; const AMDGPUTargetMachine *TM;
const AMDGPUSubtarget *ST; const AMDGPUSubtarget *ST;
const AMDGPUTargetLowering *TLI; const AMDGPUTargetLowering *TLI;

View File

@ -33,7 +33,7 @@ void initializeX86TTIPass(PassRegistry &);
namespace { namespace {
class X86TTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo { class X86TTI final : public ImmutablePass, public TargetTransformInfo {
const X86Subtarget *ST; const X86Subtarget *ST;
const X86TargetLowering *TLI; const X86TargetLowering *TLI;

View File

@ -31,7 +31,7 @@ void initializeXCoreTTIPass(PassRegistry &);
namespace { namespace {
class XCoreTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo { class XCoreTTI final : public ImmutablePass, public TargetTransformInfo {
public: public:
XCoreTTI() : ImmutablePass(ID) { XCoreTTI() : ImmutablePass(ID) {
llvm_unreachable("This pass cannot be directly constructed"); llvm_unreachable("This pass cannot be directly constructed");