]> granicus.if.org Git - clang/commitdiff
[MS] Emit S_HEAPALLOCSITE debug info
authorAmy Huang <akhuang@google.com>
Fri, 19 Apr 2019 21:09:11 +0000 (21:09 +0000)
committerAmy Huang <akhuang@google.com>
Fri, 19 Apr 2019 21:09:11 +0000 (21:09 +0000)
Summary:
This emits labels around heapallocsite calls and S_HEAPALLOCSITE debug
info in codeview. Currently only changes FastISel, so emitting labels still
needs to be implemented in SelectionDAG.

Reviewers: hans, rnk

Subscribers: aprantl, hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D60800

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358783 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 95ec4fa690cd80ec66fa5e0977b44adcad55515e..2b7653a5a4db743cc8e11696d3d407c16fa712de 100644 (file)
@@ -1969,7 +1969,6 @@ void CGDebugInfo::addHeapAllocSiteMetadata(llvm::Instruction *CI,
     QualType PointeeTy = D.getTypePtr()->getPointeeType();
     node = getOrCreateType(PointeeTy, getOrCreateFile(Loc));
   }
-
   CI->setMetadata("heapallocsite", node);
 }