[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
This commit is contained in:
Craig Topper 2014-03-18 07:27:13 +00:00
parent 5b645797db
commit a9d93e3c74
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -80,7 +80,7 @@ typedef struct Address {
}
} Address;
class PPCFastISel : public FastISel {
class PPCFastISel final : public FastISel {
const TargetMachine &TM;
const TargetInstrInfo &TII;

View File

@ -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;