summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/DwarfWriter.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-06-23 12:51:53 +0000
committerJim Laskey <jlaskey@mac.com>2006-06-23 12:51:53 +0000
commit89d67faf30ed1a8b5364f53c9a0f5e07a9a0719c (patch)
tree7ad677adaa15e302a762b79b0fa731b7ec813c9d /include/llvm/CodeGen/DwarfWriter.h
parent52b510b4c4f36f58c4aa37a1f835eb95e89e0adb (diff)
downloadllvm-89d67faf30ed1a8b5364f53c9a0f5e07a9a0719c.tar.gz
llvm-89d67faf30ed1a8b5364f53c9a0f5e07a9a0719c.tar.bz2
llvm-89d67faf30ed1a8b5364f53c9a0f5e07a9a0719c.tar.xz
Add and sort "sections" in debug lines. This always stepping through
code in sections other than ".text", including weak sections like ctors and dtors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DwarfWriter.h')
-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 cfa90f2ed1..d501d50191 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -47,6 +47,7 @@ class MachineMove;
class Module;
class MRegisterInfo;
class SubprogramDesc;
+class SourceLineInfo;
class TargetData;
class Type;
class TypeDesc;
@@ -110,11 +111,6 @@ protected:
///
bool shouldEmit;
- /// IsNormalText - Flag to indicate if routine is not special case text
- /// (coalesced.)
- // FIXME - should be able to debug coalesced functions.
- bool IsNormalText;
-
/// SubprogramCount - The running count of functions being compiled.
///
unsigned SubprogramCount;
@@ -144,10 +140,13 @@ protected:
/// descriptors to debug information entries.
std::map<DebugInfoDesc *, DIE *> DescToDieMap;
- /// TypeToDieMap - Type to DIEType map.
+ /// SectionMap - Provides a unique id per text section.
+ ///
+ UniqueVector<std::string> SectionMap;
+
+ /// SectionSourceLines - Tracks line numbers per text section.
///
- // FIXME - Should not be needed.
- std::map<Type *, DIE *> TypeToDieMap;
+ std::vector<std::vector<SourceLineInfo *> > SectionSourceLines;
//===--------------------------------------------------------------------===//
// Properties to be set by the derived class ctor, used to configure the
@@ -483,7 +482,7 @@ public:
/// BeginFunction - Gather pre-function debug information. Assumes being
/// emitted immediately after the function entry point.
- void BeginFunction(MachineFunction *MF, bool IsNormalText);
+ void BeginFunction(MachineFunction *MF);
/// EndFunction - Gather and emit post-function debug information.
///