mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
ad4e4e9593
Adding verbose dumping to the recent implementation of dumping of v5 range list entries. We're capturing the entries as is as they come in during extraction, including their file offset, so we can dump them in more detail. The offset table entries which are table-relative are shown as is (as in non-verbose mode) and with the actual file offset they map to. Reviewers: dblaikie, aprantl, jdevlieghere, jhenderson Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43366 llvm-svn: 327059
30 lines
1004 B
C++
30 lines
1004 B
C++
//===- DWARFDebugAranges.cpp ------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
|
|
|
|
#include "llvm/Support/Format.h"
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
using namespace llvm;
|
|
|
|
void DWARFAddressRange::dump(raw_ostream &OS, uint32_t AddressSize,
|
|
DIDumpOptions DumpOpts) const {
|
|
|
|
OS << (DumpOpts.DisplayRawContents ? " " : "[");
|
|
OS << format("0x%*.*" PRIx64 ", ", AddressSize * 2, AddressSize * 2, LowPC)
|
|
<< format("0x%*.*" PRIx64, AddressSize * 2, AddressSize * 2, HighPC);
|
|
OS << (DumpOpts.DisplayRawContents ? "" : ")");
|
|
}
|
|
|
|
raw_ostream &llvm::operator<<(raw_ostream &OS, const DWARFAddressRange &R) {
|
|
R.dump(OS, /* AddressSize */ 8);
|
|
return OS;
|
|
}
|