mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
@@ -178,7 +178,7 @@ public:
|
||||
const SmallVectorImpl<DwarfUnit *> &getUnits() { return CUs; }
|
||||
|
||||
/// \brief Compute the size and offset of a DIE given an incoming Offset.
|
||||
unsigned computeSizeAndOffset(DIE *Die, unsigned Offset);
|
||||
unsigned computeSizeAndOffset(DIE &Die, unsigned Offset);
|
||||
|
||||
/// \brief Compute the size and offset of all the DIEs.
|
||||
void computeSizeAndOffsets();
|
||||
@@ -666,7 +666,7 @@ public:
|
||||
}
|
||||
|
||||
/// \brief Recursively Emits a debug information entry.
|
||||
void emitDIE(DIE *Die);
|
||||
void emitDIE(DIE &Die);
|
||||
|
||||
// Experimental DWARF5 features.
|
||||
|
||||
|
Reference in New Issue
Block a user