]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Fix PR17239 by changing the semantics of the RemainingArgsClass Option kind
authorReid Kleckner <reid@kleckner.net>
Fri, 22 Aug 2014 19:29:17 +0000 (19:29 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 22 Aug 2014 19:29:17 +0000 (19:29 +0000)
commit2e1bf78ad68962924ad2c5c98b9e80714a221dd2
treeb0f24ee28c59efb03d9e6e7e3299a8bf9e00d923
parentf50f927d65a97737d3e31229f9006c989bbc1fc4
Fix PR17239 by changing the semantics of the RemainingArgsClass Option kind

This patch contains the LLVM side of the fix of PR17239.

This bug that happens because the /link (clang-cl.exe argument) is
marked as "consume all remaining arguments". However, when inside a
response file, /link should only consume all remaining arguments inside
the response file where it is located, not the entire command line after
expansion.

My patch will change the semantics of the RemainingArgsClass kind to
always consume only until the end of the response file when the option
originally came from a response file. There are only two options in this
class: dash dash (--) and /link.

Reviewed By: rnk

Differential Revision: http://reviews.llvm.org/D4899

Patch by Rafael Auler!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216280 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
lib/Option/OptTable.cpp
lib/Option/Option.cpp
lib/Support/CommandLine.cpp
unittests/Support/CommandLineTest.cpp