diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-05-06 07:33:30 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-05-06 07:33:30 +0000 |
| commit | 57407525fdc4fd5aab719aa0bb473d29517d8c47 (patch) | |
| tree | 24c26f5708da8a54831358317823b45866efdb8b /clang/lib/CodeGen/CGDebugInfo.h | |
| parent | 646f64f04ac5e70be4e49e35aaf7fc067ca38723 (diff) | |
| download | bcm5719-llvm-57407525fdc4fd5aab719aa0bb473d29517d8c47.tar.gz bcm5719-llvm-57407525fdc4fd5aab719aa0bb473d29517d8c47.zip | |
DebugInfo: Emit the definition of enums when the definition preceeds the declaration and initial use.
This regressed a little further 208055 though it was already a little
broken.
While the requiresCompleteType optimization should be implemented here.
Future (possibly near future) work.
llvm-svn: 208065
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 700e3358dea..f7640bc28dd 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -135,6 +135,7 @@ class CGDebugInfo { llvm::DIType CreateType(const MemberPointerType *Ty, llvm::DIFile F); llvm::DIType CreateType(const AtomicType *Ty, llvm::DIFile F); llvm::DIType CreateEnumType(const EnumType *Ty); + llvm::DIType CreateTypeDefinition(const EnumType *Ty); llvm::DIType CreateSelfType(const QualType &QualTy, llvm::DIType Ty); llvm::DIType getTypeOrNull(const QualType); llvm::DICompositeType getOrCreateMethodType(const CXXMethodDecl *Method, @@ -295,6 +296,7 @@ public: llvm::DIType getOrCreateInterfaceType(QualType Ty, SourceLocation Loc); + void completeType(const EnumDecl *ED); void completeType(const RecordDecl *RD); void completeRequiredType(const RecordDecl *RD); void completeClassData(const RecordDecl *RD); |

