1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

DWARFDebugFrame: Add some trivial accessors. NFC.

To be used for dumping.

llvm-svn: 230548
This commit is contained in:
Frederic Riss 2015-02-25 21:30:13 +00:00
parent ac3e175f06
commit ad6f9c5053

View File

@ -210,6 +210,9 @@ public:
~CIE() {
}
uint64_t getCodeAlignmentFactor() const { return CodeAlignmentFactor; }
int64_t getDataAlignmentFactor() const { return DataAlignmentFactor; }
void dumpHeader(raw_ostream &OS) const override {
OS << format("%08x %08x %08x CIE",
(uint32_t)Offset, (uint32_t)Length, DW_CIE_ID)
@ -255,6 +258,8 @@ public:
~FDE() {
}
CIE *getLinkedCIE() const { return LinkedCIE; }
void dumpHeader(raw_ostream &OS) const override {
OS << format("%08x %08x %08x FDE ",
(uint32_t)Offset, (uint32_t)Length, (int32_t)LinkedCIEOffset);