Simplify memory management.

We no longer need an explicit delete or a polymorphic destructor.

llvm-svn: 256333
This commit is contained in:
Rafael Espindola
2015-12-23 14:35:51 +00:00
parent 17377bdd45
commit 21f7bd4ba1
4 changed files with 6 additions and 11 deletions

View File

@@ -31,8 +31,6 @@ public:
};
}
InputFile::~InputFile() {}
template <class ELFT>
ELFFileBase<ELFT>::ELFFileBase(Kind K, MemoryBufferRef M)
: InputFile(K, M), ELFObj(MB.getBuffer(), ECRAII().getEC()) {}