mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
a45e3ff4f2
commit
4eb03f049e
@ -106,16 +106,6 @@
|
||||
#define LLVM_DELETED_FUNCTION
|
||||
#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.
|
||||
/// Use to mark virtual methods as overriding a base class method.
|
||||
#if __has_feature(cxx_override_control) || \
|
||||
|
@ -241,7 +241,7 @@ unsigned TargetTransformInfo::getReductionCost(unsigned Opcode, Type *Ty,
|
||||
|
||||
namespace {
|
||||
|
||||
struct NoTTI LLVM_FINAL : ImmutablePass, TargetTransformInfo {
|
||||
struct NoTTI final : ImmutablePass, TargetTransformInfo {
|
||||
const DataLayout *DL;
|
||||
|
||||
NoTTI() : ImmutablePass(ID), DL(0) {
|
||||
|
@ -25,7 +25,7 @@ using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
||||
class BasicTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
|
||||
class BasicTTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
const TargetMachine *TM;
|
||||
|
||||
/// Estimate the overhead of scalarizing an instruction. Insert and Extract
|
||||
|
@ -32,7 +32,7 @@ void initializeAArch64TTIPass(PassRegistry &);
|
||||
|
||||
namespace {
|
||||
|
||||
class AArch64TTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
|
||||
class AArch64TTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
const AArch64TargetMachine *TM;
|
||||
const AArch64Subtarget *ST;
|
||||
const AArch64TargetLowering *TLI;
|
||||
|
@ -32,7 +32,7 @@ void initializeARMTTIPass(PassRegistry &);
|
||||
|
||||
namespace {
|
||||
|
||||
class ARMTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
|
||||
class ARMTTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
const ARMBaseTargetMachine *TM;
|
||||
const ARMSubtarget *ST;
|
||||
const ARMTargetLowering *TLI;
|
||||
|
@ -32,7 +32,7 @@ void initializePPCTTIPass(PassRegistry &);
|
||||
|
||||
namespace {
|
||||
|
||||
class PPCTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
|
||||
class PPCTTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
const PPCTargetMachine *TM;
|
||||
const PPCSubtarget *ST;
|
||||
const PPCTargetLowering *TLI;
|
||||
|
@ -35,7 +35,7 @@ void initializeAMDGPUTTIPass(PassRegistry &);
|
||||
|
||||
namespace {
|
||||
|
||||
class AMDGPUTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
|
||||
class AMDGPUTTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
const AMDGPUTargetMachine *TM;
|
||||
const AMDGPUSubtarget *ST;
|
||||
const AMDGPUTargetLowering *TLI;
|
||||
|
@ -33,7 +33,7 @@ void initializeX86TTIPass(PassRegistry &);
|
||||
|
||||
namespace {
|
||||
|
||||
class X86TTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
|
||||
class X86TTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
const X86Subtarget *ST;
|
||||
const X86TargetLowering *TLI;
|
||||
|
||||
|
@ -31,7 +31,7 @@ void initializeXCoreTTIPass(PassRegistry &);
|
||||
|
||||
namespace {
|
||||
|
||||
class XCoreTTI LLVM_FINAL : public ImmutablePass, public TargetTransformInfo {
|
||||
class XCoreTTI final : public ImmutablePass, public TargetTransformInfo {
|
||||
public:
|
||||
XCoreTTI() : ImmutablePass(ID) {
|
||||
llvm_unreachable("This pass cannot be directly constructed");
|
||||
|
Loading…
Reference in New Issue
Block a user