mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user