Use 'override/final' instead of 'virtual' for overridden methods
[oota-llvm.git] / unittests / IR / IRBuilderTest.cpp
index cf189b1fb11deea50b51e0a2b0758b52a86873a9..9fe241c1a74c4cebcc84f3e3126f11545a3206b8 100644 (file)
@@ -26,7 +26,7 @@ namespace {
 
 class IRBuilderTest : public testing::Test {
 protected:
-  virtual void SetUp() {
+  void SetUp() override {
     M.reset(new Module("MyModule", Ctx));
     FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx),
                                           /*isVarArg=*/false);
@@ -36,7 +36,7 @@ protected:
                             GlobalValue::ExternalLinkage, nullptr);
   }
 
-  virtual void TearDown() {
+  void TearDown() override {
     BB = nullptr;
     M.reset();
   }