diff options
| author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2018-08-14 17:54:41 +0000 |
|---|---|---|
| committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2018-08-14 17:54:41 +0000 |
| commit | f446282aad4ce40b0c4570813261b78c527a588b (patch) | |
| tree | 4da6c331bd1e47a55daa209be5c40cba48d6ae98 /llvm/lib/CodeGen/AsmPrinter/DwarfFile.h | |
| parent | abf94118c5561171bab909c08ae5b89fada1ffa7 (diff) | |
| download | bcm5719-llvm-f446282aad4ce40b0c4570813261b78c527a588b.tar.gz bcm5719-llvm-f446282aad4ce40b0c4570813261b78c527a588b.zip | |
Revert "[DebugInfo] Generate DWARF debug information for labels. (Fix leak problems)"
This reverts commit cb8c5e417d55141f3f079a8a876e786f44308336 / r339676.
This causing a test to fail in http://green.lab.llvm.org/green/job/clang-stage1-configure-RA/48406/
LLVM :: DebugInfo/Generic/debug-label.ll
llvm-svn: 339700
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfFile.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h index c315f44a8d8..8dfbc4e1c43 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h @@ -24,9 +24,7 @@ namespace llvm { class AsmPrinter; -class DbgEntity; class DbgVariable; -class DbgLabel; class DwarfCompileUnit; class DwarfUnit; class LexicalScope; @@ -64,13 +62,9 @@ class DwarfFile { /// Collection of DbgVariables of each lexical scope. DenseMap<LexicalScope *, ScopeVars> ScopeVariables; - /// Collection of DbgLabels of each lexical scope. - using LabelList = SmallVector<DbgLabel *, 4>; - DenseMap<LexicalScope *, LabelList> ScopeLabels; - // Collection of abstract subprogram DIEs. DenseMap<const MDNode *, DIE *> AbstractSPDies; - DenseMap<const DINode *, std::unique_ptr<DbgEntity>> AbstractEntities; + DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> AbstractVariables; /// Maps MDNodes for type system with the corresponding DIEs. These DIEs can /// be shared across CUs, that is why we keep the map here instead @@ -128,22 +122,16 @@ public: /// \returns false if the variable was merged with a previous one. bool addScopeVariable(LexicalScope *LS, DbgVariable *Var); - void addScopeLabel(LexicalScope *LS, DbgLabel *Label); - DenseMap<LexicalScope *, ScopeVars> &getScopeVariables() { return ScopeVariables; } - DenseMap<LexicalScope *, LabelList> &getScopeLabels() { - return ScopeLabels; - } - DenseMap<const MDNode *, DIE *> &getAbstractSPDies() { return AbstractSPDies; } - DenseMap<const DINode *, std::unique_ptr<DbgEntity>> &getAbstractEntities() { - return AbstractEntities; + DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> &getAbstractVariables() { + return AbstractVariables; } void insertDIE(const MDNode *TypeMD, DIE *Die) { |

