This is an archive of the discontinued LLVM Phabricator instance.

Add support for the /Fi argument to clang-cl
ClosedPublic

Authored by ehsan on Jun 13 2014, 5:49 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

ehsan updated this revision to Diff 10413.Jun 13 2014, 5:49 PM
ehsan retitled this revision from to Add support for the /Fi argument to clang-cl.
ehsan updated this object.
ehsan edited the test plan for this revision. (Show Details)
ehsan added reviewers: hans, rnk.
ehsan added a subscriber: ehsan.
hans added inline comments.Jun 16 2014, 10:44 AM
lib/Driver/Driver.cpp
1618 ↗(On Diff #10413)

I wonder if we could find a better name for this variable. Maybe something like "NameArg"?

1620 ↗(On Diff #10413)

This could be simplified as:

if (Arg *A = C.getLastArg(options::OPT__SLASH_Fi)

Val = A->getValue();
test/Driver/cl-options.c
33 ↗(On Diff #10413)

Flags that affect output filenames are tested in cl-outputs.c.

ehsan updated this revision to Diff 10469.Jun 16 2014, 4:46 PM

Addressed the review comments.

hans accepted this revision.Jun 16 2014, 5:25 PM
hans edited edge metadata.

LGTM!

This revision is now accepted and ready to land.Jun 16 2014, 5:25 PM
hans closed this revision.Jun 16 2014, 5:27 PM
hans updated this revision to Diff 10474.

Closed by commit rL211081 (authored by @hans).