aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-03-23 23:02:34 +0000
committerJim Laskey <jlaskey@mac.com>2006-03-23 23:02:34 +0000
commit90c79d73ac071978f01eb48ea3f7e1cea79a730d (patch)
treeed8a6c2fb982fd6e0f65d6bb465ea9bceb63378d /include
parent025213e9f2c52e22c8cf5cfcb84ea59fe2cb76fe (diff)
downloadexternal_llvm-90c79d73ac071978f01eb48ea3f7e1cea79a730d.zip
external_llvm-90c79d73ac071978f01eb48ea3f7e1cea79a730d.tar.gz
external_llvm-90c79d73ac071978f01eb48ea3f7e1cea79a730d.tar.bz2
Make sure types are allocated in the scope of their use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/DwarfWriter.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h
index 7733c48..f7b5eaa 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -121,8 +121,8 @@ protected:
///
std::map<DebugInfoDesc *, CompileUnit *> DescToUnitMap;
- /// DescToDieMap - Tracks the mapping of debug informaton descriptors to
- /// DIES.
+ /// DescToDieMap - Tracks the mapping of top level debug informaton
+ /// descriptors to debug information entries.
std::map<DebugInfoDesc *, DIE *> DescToDieMap;
/// TypeToDieMap - Type to DIEType map.
@@ -302,7 +302,7 @@ public:
}
void EmitDifference(const char *TagHi, unsigned NumberHi,
const char *TagLo, unsigned NumberLo) const;
-
+
/// NewAbbreviation - Add the abbreviation to the Abbreviation vector.
///
unsigned NewAbbreviation(DIEAbbrev *Abbrev);
@@ -311,11 +311,10 @@ public:
///
DWLabel NewString(const std::string &String);
- /// NewBasicType - Creates a new basic type if necessary, then adds to the
- /// owner.
- /// FIXME - Should never be needed.
- DIE *NewBasicType(DIE *Context, Type *Ty);
-
+ /// getDieMapSlotFor - Returns the debug information entry map slot for the
+ /// specified debug descriptor.
+ DIE *&getDieMapSlotFor(DebugInfoDesc *DD);
+
private:
/// AddSourceLine - Add location information to specified debug information
@@ -324,7 +323,7 @@ private:
/// NewType - Create a new type DIE.
///
- DIE *NewType(DIE *Context, TypeDesc *TyDesc);
+ DIE *NewType(DIE *Context, TypeDesc *TyDesc, CompileUnit *Unit);
/// NewCompileUnit - Create new compile unit and it's die.
///