diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-18 07:27:13 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-18 07:27:13 +0000 |
commit | a9d93e3c74b5527eba8066a353afde2002cd80da (patch) | |
tree | c9a20aeabfcf36bdf9de1c026470e934a71c41f1 /lib | |
parent | 5b645797db05926bffdd6214e94a527267445cc9 (diff) | |
download | llvm-a9d93e3c74b5527eba8066a353afde2002cd80da.tar.gz llvm-a9d93e3c74b5527eba8066a353afde2002cd80da.tar.bz2 llvm-a9d93e3c74b5527eba8066a353afde2002cd80da.tar.xz |
[C++11] Mark the target fast isel classes as 'final' so that the compiler can de-virtualize some of the internal calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 2 | ||||
-rw-r--r-- | lib/Target/PowerPC/PPCFastISel.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index de6a03cde5..a81917638b 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -73,7 +73,7 @@ namespace { } } Address; -class ARMFastISel : public FastISel { +class ARMFastISel final : public FastISel { /// Subtarget - Keep a pointer to the ARMSubtarget around so that we can /// make the right decision when generating code for different targets. diff --git a/lib/Target/PowerPC/PPCFastISel.cpp b/lib/Target/PowerPC/PPCFastISel.cpp index aedee7c207..e0c89fa8ce 100644 --- a/lib/Target/PowerPC/PPCFastISel.cpp +++ b/lib/Target/PowerPC/PPCFastISel.cpp @@ -80,7 +80,7 @@ typedef struct Address { } } Address; -class PPCFastISel : public FastISel { +class PPCFastISel final : public FastISel { const TargetMachine &TM; const TargetInstrInfo &TII; diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 2a0eb247dd..0751af45e3 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -41,7 +41,7 @@ using namespace llvm; namespace { -class X86FastISel : public FastISel { +class X86FastISel final : public FastISel { /// Subtarget - Keep a pointer to the X86Subtarget around so that we can /// make the right decision when generating code for different targets. const X86Subtarget *Subtarget; |