diff options
author | Eric Christopher <echristo@apple.com> | 2012-01-06 04:35:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-01-06 04:35:23 +0000 |
commit | c36145f19c1e164f7d630b813e9970600d8f2976 (patch) | |
tree | 4fecb1e41d03e3621ef56ccba6182f17c712fc38 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 3b205175ea417349ab96f3525d730e005e12c0f9 (diff) |
As part of the ongoing work in finalizing the accelerator tables, extend
the debug type accelerator tables to contain the tag and a flag
stating whether or not a compound type is a complete type.
rdar://10652330
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 07a772338e..fe65927ff5 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -65,7 +65,7 @@ class CompileUnit { StringMap<std::vector<DIE*> > AccelNames; StringMap<std::vector<DIE*> > AccelObjC; StringMap<std::vector<DIE*> > AccelNamespace; - StringMap<std::vector<DIE*> > AccelTypes; + StringMap<std::vector<std::pair<DIE*, unsigned> > > AccelTypes; /// DIEBlocks - A list of all the DIEBlocks in use. std::vector<DIEBlock *> DIEBlocks; @@ -93,7 +93,8 @@ public: const StringMap<std::vector<DIE*> > &getAccelNamespace() const { return AccelNamespace; } - const StringMap<std::vector<DIE*> > &getAccelTypes() const { + const StringMap<std::vector<std::pair<DIE*, unsigned > > > + &getAccelTypes() const { return AccelTypes; } @@ -119,8 +120,8 @@ public: std::vector<DIE*> &DIEs = AccelNamespace[Name]; DIEs.push_back(Die); } - void addAccelType(StringRef Name, DIE *Die) { - std::vector<DIE*> &DIEs = AccelTypes[Name]; + void addAccelType(StringRef Name, std::pair<DIE *, unsigned> Die) { + std::vector<std::pair<DIE*, unsigned > > &DIEs = AccelTypes[Name]; DIEs.push_back(Die); } |