[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineDebugInfo.h
Jim Laskey
jlaskey at apple.com
Sun Mar 26 14:45:34 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineDebugInfo.h updated: 1.31 -> 1.32
---
Log message:
How to be dumb on $5/day. Need a tri-state to track valid debug descriptors.
---
Diffs of the changes: (+11 -6)
MachineDebugInfo.h | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineDebugInfo.h
diff -u llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.31 llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.32
--- llvm/include/llvm/CodeGen/MachineDebugInfo.h:1.31 Thu Mar 23 12:07:55 2006
+++ llvm/include/llvm/CodeGen/MachineDebugInfo.h Sun Mar 26 16:45:20 2006
@@ -773,16 +773,21 @@
/// GlobalVariables are valid as DebugInfoDesc objects.
class DIVerifier {
private:
+ enum {
+ Unknown = 0,
+ Invalid,
+ Valid
+ };
unsigned DebugVersion; // Version of debug information in use.
- std::set<GlobalVariable *> Visited; // Tracks visits during recursion.
+ std::map<GlobalVariable *, unsigned> Validity;// Tracks prior results.
std::map<unsigned, unsigned> Counts; // Count of fields per Tag type.
-
- /// markVisited - Return true if the GlobalVariable hase been "seen" before.
- /// Mark markVisited otherwise.
- bool markVisited(GlobalVariable *GV);
public:
- DIVerifier() : DebugVersion(LLVMDebugVersion) {}
+ DIVerifier()
+ : DebugVersion(LLVMDebugVersion)
+ , Validity()
+ , Counts()
+ {}
~DIVerifier() {}
/// Verify - Return true if the GlobalVariable appears to be a valid
More information about the llvm-commits
mailing list