diff options
author | Amy Huang <akhuang@google.com> | 2019-04-12 20:25:30 +0000 |
---|---|---|
committer | Amy Huang <akhuang@google.com> | 2019-04-12 20:25:30 +0000 |
commit | 0d0334fe1b152473eff93617a5aa295b2dbff247 (patch) | |
tree | 779571cf7f84218f20e43a57cc91687bcbf0363c /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 65132e2118140200dc57e2df9d8713dd07e72119 (diff) | |
download | bcm5719-llvm-0d0334fe1b152473eff93617a5aa295b2dbff247.tar.gz bcm5719-llvm-0d0334fe1b152473eff93617a5aa295b2dbff247.zip |
Relanding r357928 with fixed debuginfo check.
[MS] Add metadata for __declspec(allocator)
Original summary:
Emit !heapallocsite in the metadata for calls to functions marked with
__declspec(allocator). Eventually this will be emitted as S_HEAPALLOCSITE debug
info in codeview.
Differential Revision: https://reviews.llvm.org/D60237
llvm-svn: 358307
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 67331b65d3b..fd7df089190 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -476,6 +476,10 @@ public: /// Emit standalone debug info for a type. llvm::DIType *getOrCreateStandaloneType(QualType Ty, SourceLocation Loc); + /// Add heapallocsite metadata for MSAllocator calls. + void addHeapAllocSiteMetadata(llvm::Instruction *CallSite, QualType Ty, + SourceLocation Loc); + void completeType(const EnumDecl *ED); void completeType(const RecordDecl *RD); void completeRequiredType(const RecordDecl *RD); |