]> granicus.if.org Git - clang/commit
Relanding r357928 with fixed debuginfo check.
authorAmy Huang <akhuang@google.com>
Fri, 12 Apr 2019 20:25:30 +0000 (20:25 +0000)
committerAmy Huang <akhuang@google.com>
Fri, 12 Apr 2019 20:25:30 +0000 (20:25 +0000)
commit31c307cf96ef1b6a4d0c542d18ebfd7a307ae9b0
treef5c2251c3b5c899dcdc3fe0915f3b0a5b88f67b9
parent61e80a3678fbcf75f2e9f1cb9fdba9b2a76b260f
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358307 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
test/CodeGen/debug-info-codeview-heapallocsite.c [new file with mode: 0644]