aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-10 22:09:58 +0000
committerDevang Patel <dpatel@apple.com>2009-08-10 22:09:58 +0000
commit72bcdb6c9b5456cf6687c9066ae9d220ebedd80a (patch)
treef11d046e63f4335da5b0a0f5c37f462d8a2597b1 /include
parent4600d179fdf132534af887f94d82d1afdbb1398a (diff)
downloadexternal_llvm-72bcdb6c9b5456cf6687c9066ae9d220ebedd80a.zip
external_llvm-72bcdb6c9b5456cf6687c9066ae9d220ebedd80a.tar.gz
external_llvm-72bcdb6c9b5456cf6687c9066ae9d220ebedd80a.tar.bz2
Keep track of DIType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DebugInfo.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index a9b21b9..5c8b31a 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -643,6 +643,9 @@ namespace llvm {
// addSubprogram - Add subprgoram into SPs.
bool addSubprogram(DISubprogram SP);
+ /// addType - Add type into Tys.
+ bool addType(DIType DT);
+
public:
typedef SmallVector<GlobalVariable *, 8>::iterator iterator;
iterator compile_unit_begin() { return CUs.begin(); }
@@ -651,15 +654,19 @@ namespace llvm {
iterator subprogram_end() { return SPs.end(); }
iterator global_variable_begin() { return GVs.begin(); }
iterator global_variable_end() { return GVs.end(); }
+ iterator type_begin() { return TYs.begin(); }
+ iterator type_end() { return TYs.end(); }
unsigned compile_unit_count() { return CUs.size(); }
unsigned global_variable_count() { return GVs.size(); }
unsigned subprogram_count() { return SPs.size(); }
+ unsigned type_count() { return TYs.size(); }
private:
SmallVector<GlobalVariable *, 8> CUs; // Compile Units
SmallVector<GlobalVariable *, 8> SPs; // Subprograms
- SmallVector<GlobalVariable *, 8> GVs; // Global Variables;
+ SmallVector<GlobalVariable *, 8> GVs; // Global Variables
+ SmallVector<GlobalVariable *, 8> TYs; // Types
SmallPtrSet<GlobalVariable *, 64> NodesSeen;
};