OSDN Git Service

Mark a couple of the X86 target classes as final. Allows the compiler to de-virtualiz...
authorCraig Topper <craig.topper@gmail.com>
Mon, 31 Mar 2014 06:22:15 +0000 (06:22 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 31 Mar 2014 06:22:15 +0000 (06:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205165 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86ISelLowering.h

index 20d69f5..3e45adb 100644 (file)
@@ -141,7 +141,7 @@ namespace {
   /// ISel - X86 specific code to select X86 machine instructions for
   /// SelectionDAG operations.
   ///
-  class X86DAGToDAGISel : public SelectionDAGISel {
+  class X86DAGToDAGISel final : public SelectionDAGISel {
     /// 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;
index ae13ca4..2b3a9e9 100644 (file)
@@ -521,7 +521,7 @@ namespace llvm {
 
   //===--------------------------------------------------------------------===//
   //  X86TargetLowering - X86 Implementation of the TargetLowering interface
-  class X86TargetLowering : public TargetLowering {
+  class X86TargetLowering final : public TargetLowering {
   public:
     explicit X86TargetLowering(X86TargetMachine &TM);