[lld] [lld][MachO] Implement -emit-tbd-only= (PR #194899)

Nuri Amari via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 12:57:15 PDT 2026


================
@@ -554,7 +556,7 @@ static InputFile *processFile(std::optional<MemoryBufferRef> buffer,
   if (newFile && !isa<DylibFile>(newFile)) {
     if ((isa<ObjFile>(newFile) || isa<BitcodeFile>(newFile)) && newFile->lazy &&
         config->forceLoadObjC) {
-      for (Symbol *sym : newFile->symbols)
+      for (lld::macho::Symbol *sym : newFile->symbols)
----------------
NuriAmari wrote:

Yeah the inclusion of TextAPI headers in this file introduces another `Symbol` type making the existing unqualified references to `Symbol` ambiguous. 

https://github.com/llvm/llvm-project/pull/194899


More information about the llvm-commits mailing list