summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/DwarfWriter.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-06-14 11:35:03 +0000
committerJim Laskey <jlaskey@mac.com>2006-06-14 11:35:03 +0000
commit014f98c7e5cbf41104ab9a86e32b8ce869982934 (patch)
tree87b6a8dd53830f8886d6ebd41090779c571e7966 /include/llvm/CodeGen/DwarfWriter.h
parentf7a121285003d7f3b970601cffdcccb5bb71fff8 (diff)
downloadllvm-014f98c7e5cbf41104ab9a86e32b8ce869982934.tar.gz
llvm-014f98c7e5cbf41104ab9a86e32b8ce869982934.tar.bz2
llvm-014f98c7e5cbf41104ab9a86e32b8ce869982934.tar.xz
Place dwarf headers at earliest possible point. Well behaved when skipping
functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DwarfWriter.h')
-rw-r--r--include/llvm/CodeGen/DwarfWriter.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h
index 1575fbe785..cfa90f2ed1 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -106,6 +106,15 @@ protected:
///
bool didInitial;
+ /// shouldEmit - Flag to indicate if debug information should be emitted.
+ ///
+ 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;
@@ -372,7 +381,7 @@ private:
/// EmitInitial - Emit initial Dwarf declarations.
///
- void EmitInitial() const;
+ void EmitInitial();
/// EmitDIE - Recusively Emits a debug information entry.
///
@@ -448,9 +457,8 @@ private:
void ConstructSubprogramDIEs();
/// ShouldEmitDwarf - Returns true if Dwarf declarations should be made.
- /// When called it also checks to see if debug info is newly available. if
- /// so the initial Dwarf headers are emitted.
- bool ShouldEmitDwarf();
+ ///
+ bool ShouldEmitDwarf() const { return shouldEmit; }
public:
@@ -475,11 +483,15 @@ public:
/// BeginFunction - Gather pre-function debug information. Assumes being
/// emitted immediately after the function entry point.
- void BeginFunction(MachineFunction *MF);
+ void BeginFunction(MachineFunction *MF, bool IsNormalText);
/// EndFunction - Gather and emit post-function debug information.
///
void EndFunction();
+
+ /// NonFunction - Function does not have a true body.
+ ///
+ void NonFunction();
};
} // end llvm namespace