diff options
author | Devang Patel <dpatel@apple.com> | 2009-12-10 19:14:49 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-12-10 19:14:49 +0000 |
commit | c366f83d89d93be557f136f1560d696b4acb6a46 (patch) | |
tree | 9190aa454bd846c76d510c8076f8e1d8e0647ff3 /lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | cbd77d2cb1812ad142412fa0a16d835fa468efe4 (diff) |
Refactor code that finds context for a given die.
Create global variable DIEs after creating subprogram DIEs. This allows function level static variable's to find their context at the time of DIE creation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index 580262039d..38bfaf6fe9 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -163,10 +163,6 @@ class DwarfDebug : public Dwarf { SmallPtrSet<DIE *, 4> TopLevelDIEs; SmallVector<DIE *, 4> TopLevelDIEsVector; - /// ScopedGVs - Tracks global variables that are not at file scope. - /// For example void f() { static int b = 42; } - SmallVector<WeakVH, 4> ScopedGVs; - typedef SmallVector<DbgScope *, 2> ScopeVector; typedef DenseMap<const MachineInstr *, ScopeVector> InsnToDbgScopeMapTy; @@ -313,6 +309,9 @@ class DwarfDebug : public Dwarf { void addBlockByrefAddress(DbgVariable *&DV, DIE *Die, unsigned Attribute, const MachineLocation &Location); + /// addToContextOwner - Add Die into the list of its context owner's children. + void addToContextOwner(DIE *Die, DIDescriptor Context); + /// addType - Add a new type attribute to the specified entity. void addType(DIE *Entity, DIType Ty); |