[llvm] r263287 - [WebAssembly] Add `final` keywords to a few more subclasses, for consistency.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 11 11:45:38 PST 2016
Author: djg
Date: Fri Mar 11 13:45:37 2016
New Revision: 263287
URL: http://llvm.org/viewvc/llvm-project?rev=263287&view=rev
Log:
[WebAssembly] Add `final` keywords to a few more subclasses, for consistency.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp
llvm/trunk/lib/Target/WebAssembly/WebAssemblyPEI.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp?rev=263287&r1=263286&r2=263287&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyFixIrreducibleControlFlow.cpp Fri Mar 11 13:45:37 2016
@@ -109,7 +109,7 @@ public:
bool operator!=(const MetaBlock &MBB) { return Block != MBB.Block; }
};
-class SuccessorList : public MetaBlock {
+class SuccessorList final : public MetaBlock {
size_t Index;
size_t Num;
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyPEI.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyPEI.cpp?rev=263287&r1=263286&r2=263287&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyPEI.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyPEI.cpp Fri Mar 11 13:45:37 2016
@@ -59,7 +59,7 @@ namespace llvm {
void initializeWasmPEIPass(PassRegistry&);
}
namespace {
-class WasmPEI : public MachineFunctionPass {
+class WasmPEI final : public MachineFunctionPass {
public:
static char ID;
WasmPEI() : MachineFunctionPass(ID) {
More information about the llvm-commits
mailing list