From 96ff6d4c8bc125c1d1aebfedd3347c21feaa5dd6 Mon Sep 17 00:00:00 2001 From: Fabroce de Gans Date: Mon, 15 Dec 2025 16:04:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=92=20llvm:=20Export=20IndexedCodeGenD?= =?UTF-8?q?ataLazyLoading=20(llvm#169563)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is needed so the llvm-cgdata tool properly builds with `LLVM_BUILD_LLVM_DYLIB` so LLVM can be built as a DLL on Windows. This effort is tracked in swiftlang/swift#85241. --- llvm/include/llvm/CGData/CodeGenDataReader.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/CGData/CodeGenDataReader.h b/llvm/include/llvm/CGData/CodeGenDataReader.h index f915ce0afcd7f..a656147a48610 100644 --- a/llvm/include/llvm/CGData/CodeGenDataReader.h +++ b/llvm/include/llvm/CGData/CodeGenDataReader.h @@ -16,6 +16,7 @@ #include "llvm/CGData/CodeGenData.h" #include "llvm/CGData/OutlinedHashTreeRecord.h" #include "llvm/CGData/StableFunctionMapRecord.h" +#include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/LineIterator.h" #include "llvm/Support/VirtualFileSystem.h" @@ -99,6 +100,8 @@ class CodeGenDataReader { Error success() { return error(cgdata_error::success); } }; +LLVM_ABI extern cl::opt IndexedCodeGenDataLazyLoading; + class LLVM_ABI IndexedCodeGenDataReader : public CodeGenDataReader { /// The codegen data file contents. std::unique_ptr DataBuffer;