diff options
| author | Jan Vesely <jan.vesely@rutgers.edu> | 2017-11-02 19:48:27 +0000 |
|---|---|---|
| committer | Jan Vesely <jan.vesely@rutgers.edu> | 2017-11-02 19:48:27 +0000 |
| commit | f76371d948c035e617778e74704772025375476f (patch) | |
| tree | c37369767deddeda58d11f637d4d7f4b6bc0111f | |
| parent | 50a3cccdbee4dc947b4b3cb1a8bc1d287b988583 (diff) | |
| download | bcm5719-llvm-f76371d948c035e617778e74704772025375476f.tar.gz bcm5719-llvm-f76371d948c035e617778e74704772025375476f.zip | |
cos: Use unary_decl instead of custom inc file
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-By: Aaron Watry <awatry@gmail.com>
llvm-svn: 317242
| -rw-r--r-- | libclc/generic/include/clc/math/cos.h | 6 | ||||
| -rw-r--r-- | libclc/generic/include/clc/math/cos.inc | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/cos.h b/libclc/generic/include/clc/math/cos.h index 3d4cf39a0f8..e21d811fc35 100644 --- a/libclc/generic/include/clc/math/cos.h +++ b/libclc/generic/include/clc/math/cos.h @@ -1,3 +1,7 @@ -#define __CLC_BODY <clc/math/cos.inc> +#define __CLC_BODY <clc/math/unary_decl.inc> +#define __CLC_FUNCTION cos + #include <clc/math/gentype.inc> + #undef __CLC_BODY +#undef __CLC_FUNCTION diff --git a/libclc/generic/include/clc/math/cos.inc b/libclc/generic/include/clc/math/cos.inc deleted file mode 100644 index 160e625c691..00000000000 --- a/libclc/generic/include/clc/math/cos.inc +++ /dev/null @@ -1 +0,0 @@ -_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE cos(__CLC_GENTYPE a); |

