[clang] [lld] [llvm] [llvm][lld][clang] Delay initializing TargetOptions in LTO builds until a Triple is available (PR #179509)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 17 12:44:16 PST 2026
================
@@ -526,8 +531,8 @@ static void splitCodeGen(const Config &C, TargetMachine *TM,
std::unique_ptr<TargetMachine> TM =
createTargetMachine(C, T, *MPartInCtx);
- codegen(C, TM.get(), AddStream, ThreadId, *MPartInCtx,
- CombinedIndex);
+ ::codegen(C, TM.get(), AddStream, ThreadId, *MPartInCtx,
----------------
ilovepi wrote:
This is needed, otherwise the name is ambiguous, since we include CommandFlags.h now. An alternative is to rename the static function in this file with a different name.
https://github.com/llvm/llvm-project/pull/179509
More information about the cfe-commits
mailing list