mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
[DWARF parser] Cleanup code in DWARFDebugAranges.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
#include "DWARFDebugAranges.h"
|
||||
#include "DWARFCompileUnit.h"
|
||||
#include "DWARFContext.h"
|
||||
#include "DWARFDebugArangeSet.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <algorithm>
|
||||
@ -70,6 +71,11 @@ void DWARFDebugAranges::generate(DWARFContext *CTX) {
|
||||
sortAndMinimize();
|
||||
}
|
||||
|
||||
void DWARFDebugAranges::clear() {
|
||||
Aranges.clear();
|
||||
ParsedCUOffsets.clear();
|
||||
}
|
||||
|
||||
void DWARFDebugAranges::appendRange(uint32_t CUOffset, uint64_t LowPC,
|
||||
uint64_t HighPC) {
|
||||
if (!Aranges.empty()) {
|
||||
|
Reference in New Issue
Block a user