diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-09-04 02:12:12 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-09-04 02:12:12 +0000 |
commit | ab415a4b352c9906a4a5f7adb14eb00e7b767d35 (patch) | |
tree | 0ce4cdc8b82878569675b8120d122a5aafe341fa /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 8270dcac332a2015f94a021cd90badcb6e3de975 (diff) | |
download | bcm5719-llvm-ab415a4b352c9906a4a5f7adb14eb00e7b767d35.tar.gz bcm5719-llvm-ab415a4b352c9906a4a5f7adb14eb00e7b767d35.zip |
Revert "DebugInfo: Remove explicit declaration-emissiong handling now that we have a more principled approach (the 'requires complete type' callback)"
This reverts commit r189013.
This is causing a segfault crash in a test case I have. Reverting while
I investigate the issue.
llvm-svn: 189906
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index a8ba14b8b3f..3003ce65fd9 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -107,14 +107,14 @@ class CGDebugInfo { unsigned Checksum(const ObjCInterfaceDecl *InterfaceDecl); llvm::DIType CreateType(const BuiltinType *Ty); llvm::DIType CreateType(const ComplexType *Ty); - llvm::DIType CreateQualifiedType(QualType Ty, llvm::DIFile Fg); - llvm::DIType CreateType(const TypedefType *Ty, llvm::DIFile Fg); + llvm::DIType CreateQualifiedType(QualType Ty, llvm::DIFile F, bool Declaration); + llvm::DIType CreateType(const TypedefType *Ty, llvm::DIFile F, bool Declaration); llvm::DIType CreateType(const ObjCObjectPointerType *Ty, llvm::DIFile F); llvm::DIType CreateType(const PointerType *Ty, llvm::DIFile F); llvm::DIType CreateType(const BlockPointerType *Ty, llvm::DIFile F); llvm::DIType CreateType(const FunctionType *Ty, llvm::DIFile F); - llvm::DIType CreateType(const RecordType *Tyg); + llvm::DIType CreateType(const RecordType *Ty, bool Declaration); llvm::DIType CreateTypeDefinition(const RecordType *Ty); llvm::DICompositeType CreateLimitedType(const RecordType *Ty); void CollectContainingType(const CXXRecordDecl *RD, llvm::DICompositeType CT); @@ -330,14 +330,14 @@ private: /// getOrCreateType - Get the type from the cache or create a new type if /// necessary. - llvm::DIType getOrCreateType(QualType Ty, llvm::DIFile Fg); + llvm::DIType getOrCreateType(QualType Ty, llvm::DIFile F, bool Declaration = false); /// getOrCreateLimitedType - Get the type from the cache or create a new /// partial type if necessary. llvm::DIType getOrCreateLimitedType(const RecordType *Ty, llvm::DIFile F); /// CreateTypeNode - Create type metadata for a source language type. - llvm::DIType CreateTypeNode(QualType Ty, llvm::DIFile Fg); + llvm::DIType CreateTypeNode(QualType Ty, llvm::DIFile F, bool Declaration); /// getObjCInterfaceDecl - return the underlying ObjCInterfaceDecl /// if Ty is an ObjCInterface or a pointer to one. |