diff options
| author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2020-01-22 16:53:38 -0500 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2020-01-23 18:17:22 +0100 |
| commit | 85ee70e86456e3bcb3c706c404db497c5a448602 (patch) | |
| tree | cdac65c7d125d31eb3b9dc0a886a65ae3ae7f2f2 /clang/include | |
| parent | ba92233ce227753221e15bfab0326a35ef05caa1 (diff) | |
| download | bcm5719-llvm-85ee70e86456e3bcb3c706c404db497c5a448602.tar.gz bcm5719-llvm-85ee70e86456e3bcb3c706c404db497c5a448602.zip | |
Clang] Fix expansion of response files in -Wp after integrated-cc1 change
After rGb4a99a061f517e60985667e39519f60186cbb469, passing a response file such as -Wp,@a.rsp wasn't working anymore because .rsp expansion happens inside clang's main() function.
This patch adds response file expansion in the -cc1 tool.
Differential Revision: https://reviews.llvm.org/D73120
(cherry picked from commit 68d7f06092e56b17eb0cddf560a9d9fe8afb7dd8)
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/Driver/Driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h index fd25663bd35..6c3feaba056 100644 --- a/clang/include/clang/Driver/Driver.h +++ b/clang/include/clang/Driver/Driver.h @@ -208,7 +208,7 @@ public: /// When the clangDriver lib is used through clang.exe, this provides a /// shortcut for executing the -cc1 command-line directly, in the same /// process. - typedef int (*CC1ToolFunc)(ArrayRef<const char *> argv); + typedef int (*CC1ToolFunc)(SmallVectorImpl<const char *> &ArgV); CC1ToolFunc CC1Main = nullptr; private: |

