diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-31 06:22:15 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-31 06:22:15 +0000 |
commit | 50f83086282dcb01ea6b602b1ab33f836491058b (patch) | |
tree | dda23e028f45f5afedb2521ec616d5b28b6a1e94 | |
parent | 94821ac1ebfb8c77ec4b7012344502980109c5ff (diff) | |
download | llvm-50f83086282dcb01ea6b602b1ab33f836491058b.tar.gz llvm-50f83086282dcb01ea6b602b1ab33f836491058b.tar.bz2 llvm-50f83086282dcb01ea6b602b1ab33f836491058b.tar.xz |
Mark a couple of the X86 target classes as final. Allows the compiler to de-virtualize some internal calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205165 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelLowering.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 20d69f5e73..3e45adb4c7 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -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; diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h index ae13ca491c..2b3a9e9644 100644 --- a/lib/Target/X86/X86ISelLowering.h +++ b/lib/Target/X86/X86ISelLowering.h @@ -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); |