diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-02 06:06:14 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-02 06:06:14 +0000 |
commit | 98cf172175690da1593ada13d8835ec5898d76ba (patch) | |
tree | a3ace0b4172ac57b86e5637e1f370b66a26dbf49 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | |
parent | cd2996c3e36a05c8200de1f5c23b406f6ed83246 (diff) | |
download | bcm5719-llvm-98cf172175690da1593ada13d8835ec5898d76ba.tar.gz bcm5719-llvm-98cf172175690da1593ada13d8835ec5898d76ba.zip |
Add DwarfUnit::addGlobalType to match DwarfUnit::addGlobalName
(these will shortly become virtual, with a null implementation in
DwarfUnit (since type units don't have accelerator tables in the current
schema) and the current implementation down in DwarfCompileUnit, moving
the actual maps there too)
llvm-svn: 221082
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index ce92b417536..fd3d6cb9ea6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -174,10 +174,12 @@ public: /// context for a global name. std::string getParentContextString(DIScope Context) const; - /// addGlobalName - Add a new global entity to the compile unit. - /// + /// Add a new global name to the compile unit. void addGlobalName(StringRef Name, DIE &Die, DIScope Context); + /// Add a new global type to the compile unit. + void addGlobalType(DIType Ty, const DIE &Die, DIScope Context); + /// addAccelNamespace - Add a new name to the namespace accelerator table. void addAccelNamespace(StringRef Name, const DIE &Die); |