From fc79ab9857adc96d243cc5ed0a641eef8ef3f253 Mon Sep 17 00:00:00 2001 From: Amy Huang Date: Tue, 23 Apr 2019 21:12:58 +0000 Subject: Revert "[MS] Emit S_HEAPALLOCSITE debug info" because of ToTWin64(db) buildbot failure. This reverts commit d07d6d617713bececf57f3547434dd52f0f13f9e and c774f687b6880484a126ed3e3d737e74c926f0ae. llvm-svn: 359034 --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 8ca30d0..89cd7a8 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1072,23 +1072,6 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV, endSymbolRecord(AnnotEnd); } - for (auto HeapAllocSite : FI.HeapAllocSites) { - MCSymbol *BeginLabel = std::get<0>(HeapAllocSite); - MCSymbol *EndLabel = std::get<1>(HeapAllocSite); - DIType *DITy = std::get<2>(HeapAllocSite); - - MCSymbol *HeapAllocEnd = beginSymbolRecord(SymbolKind::S_HEAPALLOCSITE); - OS.AddComment("Call site offset"); - OS.EmitCOFFSecRel32(BeginLabel, /*Offset=*/0); - OS.AddComment("Call site section index"); - OS.EmitCOFFSectionIndex(BeginLabel); - OS.AddComment("Call instruction length"); - OS.emitAbsoluteSymbolDiff(EndLabel, BeginLabel, 2); - OS.AddComment("Type index"); - OS.EmitIntValue(getCompleteTypeIndex(DITy).getIndex(), 4); - endSymbolRecord(HeapAllocEnd); - } - if (SP != nullptr) emitDebugInfoForUDTs(LocalUDTs); @@ -2824,7 +2807,6 @@ void CodeViewDebug::endFunctionImpl(const MachineFunction *MF) { } CurFn->Annotations = MF->getCodeViewAnnotations(); - CurFn->HeapAllocSites = MF->getCodeViewHeapAllocSites(); CurFn->End = Asm->getFunctionEnd(); -- cgit v1.1