aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 5e1b313..ea57a8f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -669,8 +669,6 @@ void CodeViewDebug::endModule() {
if (!Asm)
return;
- emitSecureHotPatchInformation();
-
emitInlineeLinesSubsection();
// Emit per-function debug information.
@@ -825,28 +823,6 @@ void CodeViewDebug::emitObjName() {
endSymbolRecord(CompilerEnd);
}
-void CodeViewDebug::emitSecureHotPatchInformation() {
- MCSymbol *hotPatchInfo = nullptr;
-
- for (const auto &F : MMI->getModule()->functions()) {
- if (!F.isDeclarationForLinker() &&
- F.hasFnAttribute("marked_for_windows_hot_patching")) {
- if (hotPatchInfo == nullptr)
- hotPatchInfo = beginCVSubsection(DebugSubsectionKind::Symbols);
- MCSymbol *HotPatchEnd = beginSymbolRecord(SymbolKind::S_HOTPATCHFUNC);
- auto *SP = F.getSubprogram();
- OS.AddComment("Function");
- OS.emitInt32(getFuncIdForSubprogram(SP).getIndex());
- OS.AddComment("Name");
- emitNullTerminatedSymbolName(OS, F.getName());
- endSymbolRecord(HotPatchEnd);
- }
- }
-
- if (hotPatchInfo != nullptr)
- endCVSubsection(hotPatchInfo);
-}
-
namespace {
struct Version {
int Part[4];