aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineDebugInfo.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-03-26 22:45:20 +0000
committerJim Laskey <jlaskey@mac.com>2006-03-26 22:45:20 +0000
commit98e0410f078185d54195d2594be3cb96e6e8ab5d (patch)
tree3d7f5a2f7d6d1b9030ca8519bcd32b6319f41d60 /include/llvm/CodeGen/MachineDebugInfo.h
parentbd6be6f52d74b15081480c382eb3e3deaaabd574 (diff)
How to be dumb on $5/day. Need a tri-state to track valid debug descriptors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineDebugInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineDebugInfo.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineDebugInfo.h b/include/llvm/CodeGen/MachineDebugInfo.h
index e63fae3eea..2e20e94e78 100644
--- a/include/llvm/CodeGen/MachineDebugInfo.h
+++ b/include/llvm/CodeGen/MachineDebugInfo.h
@@ -773,16 +773,21 @@ public:
/// 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