aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2008-06-07 04:46:53 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2008-06-07 04:46:53 +0000
commitf58c27a64de75b152b54b88a7aee07867aaeda17 (patch)
tree6ca50951b1ac79233000a67f3271a293a60f22b8 /lib/CodeGen/CGDebugInfo.h
parentc0c03bc3c4669897ce8a995d7c20d9c71bc7cc8f (diff)
Create debug type descriptors for aggregate/enum types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r--lib/CodeGen/CGDebugInfo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h
index 35d167ce81..129ba9419c 100644
--- a/lib/CodeGen/CGDebugInfo.h
+++ b/lib/CodeGen/CGDebugInfo.h
@@ -34,6 +34,7 @@ namespace llvm {
class SubprogramDesc;
class GlobalVariable;
class GlobalVariableDesc;
+ class EnumeratorDesc;
}
namespace clang {
@@ -69,6 +70,7 @@ private:
std::vector<llvm::DebugInfoDesc *> RegionStack;
std::vector<llvm::VariableDesc *> VariableDescList;
std::vector<llvm::GlobalVariableDesc *> GlobalVarDescList;
+ std::vector<llvm::EnumeratorDesc *> EnumDescList;
llvm::SubprogramDesc *Subprogram;
/// Helper functions for getOrCreateType.
@@ -82,6 +84,12 @@ private:
llvm::CompileUnitDesc *unit);
llvm::TypeDesc *getOrCreateFunctionType(QualType type,
llvm::CompileUnitDesc *unit);
+ llvm::TypeDesc *getOrCreateRecordType(QualType type,
+ llvm::CompileUnitDesc *unit);
+ llvm::TypeDesc *getOrCreateEnumType(QualType type,
+ llvm::CompileUnitDesc *unit);
+ llvm::TypeDesc *getOrCreateTaggedType(QualType type,
+ llvm::CompileUnitDesc *unit);
public:
CGDebugInfo(CodeGenModule *m);