diff options
| author | Manman Ren <manman.ren@gmail.com> | 2017-01-11 18:47:38 +0000 | 
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2017-01-11 18:47:38 +0000 | 
| commit | 9803ee8e9a3af45cdb62e5359929ff608d6dae7d (patch) | |
| tree | 4293a983724eebfa39371468f2f3beb8128f758c /clang/test/Modules/Inputs | |
| parent | 3e9dea024ec6816758314fb6eb58cc5b1678d334 (diff) | |
| download | bcm5719-llvm-9803ee8e9a3af45cdb62e5359929ff608d6dae7d.tar.gz bcm5719-llvm-9803ee8e9a3af45cdb62e5359929ff608d6dae7d.zip  | |
Module: Do not add any link flags when an implementation TU of a module imports
a header of that same module.
This fixes a regression caused by r280409.
rdar://problem/29930553
This is an updated version for r291628 (which was reverted in r291688).
llvm-svn: 291689
Diffstat (limited to 'clang/test/Modules/Inputs')
| -rw-r--r-- | clang/test/Modules/Inputs/module-impl-with-link/foo.h | 1 | ||||
| -rw-r--r-- | clang/test/Modules/Inputs/module-impl-with-link/module.modulemap | 4 | 
2 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/module-impl-with-link/foo.h b/clang/test/Modules/Inputs/module-impl-with-link/foo.h new file mode 100644 index 00000000000..90fe1bcc585 --- /dev/null +++ b/clang/test/Modules/Inputs/module-impl-with-link/foo.h @@ -0,0 +1 @@ +//empty diff --git a/clang/test/Modules/Inputs/module-impl-with-link/module.modulemap b/clang/test/Modules/Inputs/module-impl-with-link/module.modulemap new file mode 100644 index 00000000000..b85f8b6fe80 --- /dev/null +++ b/clang/test/Modules/Inputs/module-impl-with-link/module.modulemap @@ -0,0 +1,4 @@ +module Clib { +  header "foo.h" +  link "Clib" +}  | 

