diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index 5f9d4837967..7d7b351b9b0 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -118,6 +118,9 @@ protected: /// corresponds to the MDNode mapped with the subprogram DIE. DenseMap<DIE *, const MDNode *> ContainingTypeMap; + // List of ranges for a given compile unit. + SmallVector<RangeSpan, 1> CURanges; + // List of range lists for a given compile unit, separate from the ranges for // the CU itself. SmallVector<RangeSpanList, 1> CURangeLists; @@ -216,6 +219,13 @@ public: /// hasContent - Return true if this compile unit has something to write out. bool hasContent() const { return !UnitDie->getChildren().empty(); } + /// addRange - Add an address range to the list of ranges for this unit. + void addRange(RangeSpan Range) { CURanges.push_back(Range); } + + /// getRanges - Get the list of ranges for this unit. + const SmallVectorImpl<RangeSpan> &getRanges() const { return CURanges; } + SmallVectorImpl<RangeSpan> &getRanges() { return CURanges; } + /// addRangeList - Add an address range list to the list of range lists. void addRangeList(RangeSpanList Ranges) { CURangeLists.push_back(Ranges); } |