summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-31 18:10:37 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-31 18:10:37 +0000
commit48ed9acede9eb8e8a13ef41f186d217c117dfe5f (patch)
tree0a1b4c7820cacfcf21cb4140ea2ab50bc795886a /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
parent5d9b00d15b3d449e8e2eadd5fa7d5d986970418f (diff)
downloadbcm5719-llvm-48ed9acede9eb8e8a13ef41f186d217c117dfe5f.tar.gz
bcm5719-llvm-48ed9acede9eb8e8a13ef41f186d217c117dfe5f.zip
Revert "[DebugInfo] Generate DWARF debug information for labels."
This reverts commits r338390 and r338398, they were causing LSan failures on the ASan bot. llvm-svn: 338408
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index ab67c43f6f2..51e1558fe4a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
@@ -14,7 +14,7 @@
#ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H
#define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H
-#include "DbgEntityHistoryCalculator.h"
+#include "DbgValueHistoryCalculator.h"
#include "DwarfDebug.h"
#include "DwarfUnit.h"
#include "llvm/ADT/ArrayRef.h"
@@ -81,7 +81,7 @@ class DwarfCompileUnit final : public DwarfUnit {
const MCSymbol *BaseAddress = nullptr;
DenseMap<const MDNode *, DIE *> AbstractSPDies;
- DenseMap<const DINode *, std::unique_ptr<DbgEntity>> AbstractEntities;
+ DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> AbstractVariables;
/// DWO ID for correlating skeleton and split units.
uint64_t DWOId = 0;
@@ -98,10 +98,10 @@ class DwarfCompileUnit final : public DwarfUnit {
return DU->getAbstractSPDies();
}
- DenseMap<const DINode *, std::unique_ptr<DbgEntity>> &getAbstractEntities() {
+ DenseMap<const MDNode *, std::unique_ptr<DbgVariable>> &getAbstractVariables() {
if (isDwoUnit() && !DD->shareAcrossDWOCUs())
- return AbstractEntities;
- return DU->getAbstractEntities();
+ return AbstractVariables;
+ return DU->getAbstractVariables();
}
public:
@@ -194,9 +194,6 @@ public:
DIE *constructVariableDIE(DbgVariable &DV, const LexicalScope &Scope,
DIE *&ObjectPointer);
- /// Construct a DIE for the given DbgLabel.
- DIE *constructLabelDIE(DbgLabel &DL, const LexicalScope &Scope);
-
/// A helper function to create children of a Scope DIE.
DIE *createScopeChildrenDIE(LexicalScope *Scope,
SmallVectorImpl<DIE *> &Children,
@@ -213,12 +210,14 @@ public:
DIE *constructImportedEntityDIE(const DIImportedEntity *Module);
void finishSubprogramDefinition(const DISubprogram *SP);
- void finishEntityDefinition(const DbgEntity *Entity);
+ void finishVariableDefinition(const DbgVariable &Var);
/// Find abstract variable associated with Var.
using InlinedVariable = DbgValueHistoryMap::InlinedVariable;
- DbgEntity *getExistingAbstractEntity(const DINode *Node);
- void createAbstractEntity(const DINode *Node, LexicalScope *Scope);
+ DbgVariable *getExistingAbstractVariable(InlinedVariable IV,
+ const DILocalVariable *&Cleansed);
+ DbgVariable *getExistingAbstractVariable(InlinedVariable IV);
+ void createAbstractVariable(const DILocalVariable *Var, LexicalScope *Scope);
/// Set the skeleton unit associated with this unit.
void setSkeleton(DwarfCompileUnit &Skel) { Skeleton = &Skel; }
@@ -289,8 +288,6 @@ public:
void applySubprogramAttributesToDefinition(const DISubprogram *SP,
DIE &SPDie);
- void applyLabelAttributes(const DbgLabel &Label, DIE &LabelDie);
-
/// getRangeLists - Get the vector of range lists.
const SmallVectorImpl<RangeSpanList> &getRangeLists() const {
return (Skeleton ? Skeleton : this)->CURangeLists;
OpenPOWER on IntegriCloud