diff options
author | Eric Christopher <echristo@apple.com> | 2011-11-10 21:47:55 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-11-10 21:47:55 +0000 |
commit | 66b37db64158e3ddedfe7598582f29798ee07d08 (patch) | |
tree | 13ac9edd7bce55148082ca625374979d3fac42ff /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 9d6055133b223d465da2555e06b50ee127ef4f4e (diff) | |
download | bcm5719-llvm-66b37db64158e3ddedfe7598582f29798ee07d08.tar.gz bcm5719-llvm-66b37db64158e3ddedfe7598582f29798ee07d08.zip |
Make types and namespaces take multiple DIEs for the accelerator tables
as well.
llvm-svn: 144319
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 453e8985792..07a772338ee 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -64,8 +64,8 @@ class CompileUnit { /// StringMap<std::vector<DIE*> > AccelNames; StringMap<std::vector<DIE*> > AccelObjC; - StringMap<DIE*> AccelNamespace; - StringMap<DIE*> AccelTypes; + StringMap<std::vector<DIE*> > AccelNamespace; + StringMap<std::vector<DIE*> > AccelTypes; /// DIEBlocks - A list of all the DIEBlocks in use. std::vector<DIEBlock *> DIEBlocks; @@ -90,8 +90,12 @@ public: const StringMap<std::vector<DIE*> > &getAccelObjC() const { return AccelObjC; } - const StringMap<DIE*> &getAccelNamespace() const { return AccelNamespace; } - const StringMap<DIE*> &getAccelTypes() const { return AccelTypes; } + const StringMap<std::vector<DIE*> > &getAccelNamespace() const { + return AccelNamespace; + } + const StringMap<std::vector<DIE*> > &getAccelTypes() const { + return AccelTypes; + } /// hasContent - Return true if this compile unit has something to write out. /// @@ -112,10 +116,12 @@ public: DIEs.push_back(Die); } void addAccelNamespace(StringRef Name, DIE *Die) { - AccelNamespace[Name] = Die; + std::vector<DIE*> &DIEs = AccelNamespace[Name]; + DIEs.push_back(Die); } void addAccelType(StringRef Name, DIE *Die) { - AccelTypes[Name] = Die; + std::vector<DIE*> &DIEs = AccelTypes[Name]; + DIEs.push_back(Die); } /// getDIE - Returns the debug information entry map slot for the |