summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-06 18:00:51 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-06 18:00:51 +0000
commit3efc6e6f469f0f037d0ecff90fe64aaf156d2a78 (patch)
treee883e69e7419f08975f913bb18edd68c6cd88d5c /clang/lib/CodeGen/CGDebugInfo.h
parent3c7b86f4ee0af73eb77af13940cecbd2c226d7e9 (diff)
downloadbcm5719-llvm-3efc6e6f469f0f037d0ecff90fe64aaf156d2a78.tar.gz
bcm5719-llvm-3efc6e6f469f0f037d0ecff90fe64aaf156d2a78.zip
Add rudimentary support for member pointers to CGDebugInfo.
llvm-svn: 90711
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index af86e2b263f..b44d2c1ac8f 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -40,7 +40,7 @@ namespace CodeGen {
/// and is responsible for emitting to llvm globals or pass directly to
/// the backend.
class CGDebugInfo {
- CodeGenModule *M;
+ CodeGenModule &CGM;
bool isMainCompileUnitCreated;
llvm::DIFactory DebugFactory;
@@ -74,12 +74,13 @@ class CGDebugInfo {
llvm::DIType CreateType(const EnumType *Ty, llvm::DICompileUnit U);
llvm::DIType CreateType(const ArrayType *Ty, llvm::DICompileUnit U);
llvm::DIType CreateType(const LValueReferenceType *Ty, llvm::DICompileUnit U);
-
+ llvm::DIType CreateType(const MemberPointerType *Ty, llvm::DICompileUnit U);
+
llvm::DIType CreatePointerLikeType(unsigned Tag,
const Type *Ty, QualType PointeeTy,
llvm::DICompileUnit U);
public:
- CGDebugInfo(CodeGenModule *m);
+ CGDebugInfo(CodeGenModule &CGM);
~CGDebugInfo();
/// setLocation - Update the current source location. If \arg loc is
OpenPOWER on IntegriCloud