diff options
author | John Brawn <john.brawn@arm.com> | 2015-09-23 13:55:40 +0000 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2015-09-23 13:55:40 +0000 |
commit | ad31ace8c8b371d42373654f65a2662f69536537 (patch) | |
tree | d71dc797a72a687c8e196a8e8a9b3ab0d0e2fde3 /clang/test | |
parent | 2dfd35499ec5f5eac9540cc45bd646c9068241f7 (diff) | |
download | bcm5719-llvm-ad31ace8c8b371d42373654f65a2662f69536537.tar.gz bcm5719-llvm-ad31ace8c8b371d42373654f65a2662f69536537.zip |
Add -fplugin=name.so option to the driver
This translates to -load name.so in the cc1 command. We can't name the driver
option -load, as that means "link against oad", so instead we follow GCC's lead
and name the option -fplugin.
llvm-svn: 248378
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Driver/fplugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/fplugin.c b/clang/test/Driver/fplugin.c new file mode 100644 index 00000000000..d0aaa9efe62 --- /dev/null +++ b/clang/test/Driver/fplugin.c @@ -0,0 +1,7 @@ +// Check that all -fplugin arguments are converted to -load + +// RUN: %clang -c %s -fplugin=foo.so -### 2>&1 | FileCheck %s --check-prefix=CHECK1 +// RUN: %clang -c %s -fplugin=foo.so -fplugin=bar.so -### 2>&1 | FileCheck %s --check-prefix=CHECK2 + +// CHECK1: "-load" "foo.so" +// CHECK2: "-load" "foo.so" "-load" "bar.so" |