I tried -undefined suppress without -flat_namespace.
lld printed '-undefined suppress' only valid with '-flat_namespace'
followed by many many screenfuls of error messages about undefined
symbols, making the original diag hard to see.
This is probably the common case when using -undefined, so let's
just abort the link immediately when there's an invalid -undefined
arg.
how about changing the error() call in getUndefinedSymbolTreatment to fatal() instead? That way the motivation for the early exit is clearer + we won't accidentally apply this early exit to other error messages in the future