[PATCH] D93263: [lld-macho] Implement option: -undefined TREATMENT
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 11:58:25 PST 2020
int3 added inline comments.
================
Comment at: lld/test/MachO/treat-undef-sym.s:14
+# ERROR: error: undefined symbol: _bar
+# ERROR-NEXT: >>> referenced by
+
----------------
gkm wrote:
> int3 wrote:
> > one final nit: why not include the filename here too? Or, if we're just interested in checking for error vs warning, then we could just leave out the check for the "referenced by" line. Checking that those two words exist in isolation doesn't seem super useful...
> >
> > (thanks for changing the format string btw)
> The intention is to verify that the `>>> referenced by` line occurs. The complete line would include the object filename `%t.o`, but `%t` is not available in that context.
why not make `%t` available then via `-DFILE`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93263/new/
https://reviews.llvm.org/D93263
More information about the llvm-commits
mailing list