]> granicus.if.org Git - llvm/commit
Devirtualize OptionValue::~OptionValue in favor of protected in the base, with final...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Mar 2015 06:57:14 +0000 (06:57 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Mar 2015 06:57:14 +0000 (06:57 +0000)
commit11c03fe898157c8cbc590f48b36be6348a8f9cda
treea47ac071c1339e5b82a3fe4d2b2c1ca565b8954b
parent8667ab752ec2d285d32b0fed009569f4c9998119
Devirtualize OptionValue::~OptionValue in favor of protected in the base, with final derived classes

These objects are never polymorphically owned, so there's no need for
virtual dtors - just make the dtor protected in the base classes, and
make the derived classes final.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231217 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h