mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Use std::unique_ptr for DIE children
Got bored, removed some manual memory management. Pushed references (rather than pointers) through a few APIs rather than replacing *x with x.get(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -104,15 +104,6 @@ void DIEAbbrev::print(raw_ostream &O) {
|
||||
void DIEAbbrev::dump() { print(dbgs()); }
|
||||
#endif
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// DIE Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
DIE::~DIE() {
|
||||
for (unsigned i = 0, N = Children.size(); i < N; ++i)
|
||||
delete Children[i];
|
||||
}
|
||||
|
||||
/// Climb up the parent chain to get the unit DIE to which this DIE
|
||||
/// belongs.
|
||||
const DIE *DIE::getUnit() const {
|
||||
|
||||
Reference in New Issue
Block a user