DWARFDebugFrame: Add some trivial accessors. NFC.
authorFrederic Riss <friss@apple.com>
Wed, 25 Feb 2015 21:30:13 +0000 (21:30 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 25 Feb 2015 21:30:13 +0000 (21:30 +0000)
To be used for dumping.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230548 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARF/DWARFDebugFrame.cpp

index b757fb0308a304b7a1209c2990dc0234c593f677..64f844b6f62bb884af11a5c103cc1318d466ccd9 100644 (file)
@@ -210,6 +210,9 @@ public:
   ~CIE() {
   }
 
   ~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)
   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() {
   }
 
   ~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);
   void dumpHeader(raw_ostream &OS) const override {
     OS << format("%08x %08x %08x FDE ",
                  (uint32_t)Offset, (uint32_t)Length, (int32_t)LinkedCIEOffset);