diff options
author | Qinkun Bao <qinkun@google.com> | 2025-06-24 13:11:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 13:11:52 -0400 |
commit | 4b4782bc868bcca7a92f1253529f148eb61cb628 (patch) | |
tree | 60cb1942ec0d17efdef9fbf46b575f4db00f77a3 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 0c50971460cb4ff808990ade61e2d5688b9b9d73 (diff) | |
download | llvm-4b4782bc868bcca7a92f1253529f148eb61cb628.zip llvm-4b4782bc868bcca7a92f1253529f148eb61cb628.tar.gz llvm-4b4782bc868bcca7a92f1253529f148eb61cb628.tar.bz2 |
Revert "Add support for Windows Secure Hot-Patching" (#145553)
Reverts llvm/llvm-project#138972
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 24 |
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]; |