UniversalDriver was used as a dispatcher to each platform-specific driver.
It had its own Options.td file. It was not just too much to parse only a
few options (we only want to parse -core, -flavor or argv[0]),
but also interpreted arguments too early. For example, if you invoke lld as
"lld -flavor gnu ... -help", then you'd get the UniversalDriver's help
message instead of GnuDriver's. This patch eliminates the use of Options
from the dispatcher.
Details
Details
- Reviewers
• rafael
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I always found this extra layer of logic to be confusing for a simple dispatcher. Nice cleanup.
Comment Actions
BTW, I was curious why this UniversalDriver was written like that because I rememberd that -core and -flavor options were significant only when they appear at beginning of command line parameters. It turned out that that was the behavior until it had been changed casually in r193301 without any reason. In hindsight, we shouldn't make such change in r193301. This patch should restore the original behavior.