This fixes http://llvm.org/PR20923.
Details
Diff Detail
Event Timeline
lib/Driver/Driver.cpp | ||
---|---|---|
1079–1089 | I would not base this check on what mode we're emulating, but which flag is being used as InputTypeArg, i.e. check that InputTypeArg is now OPT_x. Also, we probably shouldn't do InputTypeArg->claim() if we don't end up using it to set the type. |
lib/Driver/Driver.cpp | ||
---|---|---|
1079–1089 | Oops, s/now/not/ in my comment above. |
test/Driver/cl-inputs.c | ||
---|---|---|
39 | It doesn't right now, because we get the /TC or /TP option using getLastArg which claims the argument. I'll fix that in a separate patch (checked with Hans on IRC.) |
Nit: I think we've usually spelled the cl.exe style options with slashes in comments.