diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-11-03 02:41:49 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-11-03 02:41:49 +0000 |
| commit | 89a26f012a034cc12ac053a2603a81e71ab97978 (patch) | |
| tree | 855857c63e0a10426ffb5c85bc13fde970554af7 /llvm/lib/CodeGen | |
| parent | db9a7a2f5f9e883c2f21f5a1aa818a5f133b7423 (diff) | |
| download | bcm5719-llvm-89a26f012a034cc12ac053a2603a81e71ab97978.tar.gz bcm5719-llvm-89a26f012a034cc12ac053a2603a81e71ab97978.zip | |
Sink range list handling down from DwarfUnit into its only use, in DwarfCompileUnit.
llvm-svn: 221123
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 15 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 15 |
2 files changed, 15 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index b924d270420..d193ad805f7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -48,6 +48,10 @@ class DwarfCompileUnit : public DwarfUnit { /// GlobalTypes - A map of globally visible types for this unit. StringMap<const DIE *> GlobalTypes; + // List of range lists for a given compile unit, separate from the ranges for + // the CU itself. + SmallVector<RangeSpanList, 1> CURangeLists; + /// \brief Construct a DIE for the given DbgVariable without initializing the /// DbgVariable's DIE reference. std::unique_ptr<DIE> constructVariableDIEImpl(const DbgVariable &DV, @@ -218,6 +222,17 @@ public: void addExpr(DIELoc &Die, dwarf::Form Form, const MCExpr *Expr); void applySubprogramAttributesToDefinition(DISubprogram SP, DIE &SPDie); + + /// addRangeList - Add an address range list to the list of range lists. + void addRangeList(RangeSpanList Ranges) { + CURangeLists.push_back(std::move(Ranges)); + } + + /// getRangeLists - Get the vector of range lists. + const SmallVectorImpl<RangeSpanList> &getRangeLists() const { + return CURangeLists; + } + SmallVectorImpl<RangeSpanList> &getRangeLists() { return CURangeLists; } }; } // end llvm namespace diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index ca10d1aa667..6c79dc25372 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -110,10 +110,6 @@ protected: // 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; - // DIEValueAllocator - All DIEValues are allocated through this allocator. BumpPtrAllocator DIEValueAllocator; @@ -157,17 +153,6 @@ public: 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(std::move(Ranges)); - } - - /// getRangeLists - Get the vector of range lists. - const SmallVectorImpl<RangeSpanList> &getRangeLists() const { - return CURangeLists; - } - SmallVectorImpl<RangeSpanList> &getRangeLists() { return CURangeLists; } - /// getParentContextString - Get a string containing the language specific /// context for a global name. std::string getParentContextString(DIScope Context) const; |

