summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-01-08 22:22:06 +0000
committerEric Christopher <echristo@gmail.com>2013-01-08 22:22:06 +0000
commit27614589dc6d214d7a69a1ad8dc3db3803b2b53e (patch)
tree5c4189b738b692d22f7e412119213f4ccb797566 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
parentc2c423eac245b1de21758c306365a0b7ff72e687 (diff)
downloadbcm5719-llvm-27614589dc6d214d7a69a1ad8dc3db3803b2b53e.tar.gz
bcm5719-llvm-27614589dc6d214d7a69a1ad8dc3db3803b2b53e.zip
Move the string pools down into the units. No functional change.
llvm-svn: 171905
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index cc6c0f7e638..1e471f75f51 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -211,16 +211,16 @@ class DwarfUnits {
SmallVector<CompileUnit *, 1> CUs;
// Collection of strings for this unit and assorted symbols.
- StrPool *StringPool;
+ StrPool StringPool;
unsigned NextStringPoolNumber;
std::string StringPref;
public:
DwarfUnits(AsmPrinter *AP, FoldingSet<DIEAbbrev> *AS,
- std::vector<DIEAbbrev *> *A,
- StrPool *SP, const char *Pref) :
+ std::vector<DIEAbbrev *> *A, const char *Pref,
+ BumpPtrAllocator &DA) :
Asm(AP), AbbreviationsSet(AS), Abbreviations(A),
- StringPool(SP), NextStringPoolNumber(0), StringPref(Pref) {}
+ StringPool(DA), NextStringPoolNumber(0), StringPref(Pref) {}
/// \brief Compute the size and offset of a DIE given an incoming Offset.
unsigned computeSizeAndOffset(DIE *Die, unsigned Offset);
@@ -254,7 +254,7 @@ public:
unsigned getStringPoolIndex(StringRef Str);
/// \brief Returns the string pool.
- StrPool *getStringPool() { return StringPool; }
+ StrPool *getStringPool() { return &StringPool; }
};
/// \brief Collects and handles dwarf debug information.
@@ -290,10 +290,6 @@ class DwarfDebug {
// separated by a zero byte, mapped to a unique id.
StringMap<unsigned, BumpPtrAllocator&> SourceIdMap;
- // A String->Symbol mapping of strings used by indirect
- // references.
- StrPool InfoStringPool;
-
// Provides a unique id per text section.
SetVector<const MCSection*> SectionMap;
@@ -409,9 +405,6 @@ class DwarfDebug {
// A list of all the unique abbreviations in use.
std::vector<DIEAbbrev *> SkeletonAbbrevs;
- // List of strings used in the skeleton.
- StrPool SkeletonStringPool;
-
// Holder for the skeleton information.
DwarfUnits SkeletonHolder;
OpenPOWER on IntegriCloud