summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:13:30 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:13:30 +0000
commit5b0600c2775881ef916dbf04d2ef89de308d7ab7 (patch)
tree43e33e20e967330ed6d92a6b448c73cfb80caf1c
parente438b58cd00e5598f8a1eb08e036d63f28317899 (diff)
downloadbcm5719-llvm-5b0600c2775881ef916dbf04d2ef89de308d7ab7.tar.gz
bcm5719-llvm-5b0600c2775881ef916dbf04d2ef89de308d7ab7.zip
nextafter: Use binary_decl_tt.inc instead of custom inc file.
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356026
-rw-r--r--libclc/generic/include/clc/math/nextafter.h7
-rw-r--r--libclc/generic/include/clc/math/nextafter.inc1
2 files changed, 6 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/nextafter.h b/libclc/generic/include/clc/math/nextafter.h
index b6f32044537..2204ba0bc11 100644
--- a/libclc/generic/include/clc/math/nextafter.h
+++ b/libclc/generic/include/clc/math/nextafter.h
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/nextafter.inc>
+#define __CLC_FUNCTION nextafter
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+
#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/nextafter.inc b/libclc/generic/include/clc/math/nextafter.inc
deleted file mode 100644
index 67a6116733e..00000000000
--- a/libclc/generic/include/clc/math/nextafter.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE nextafter(__CLC_GENTYPE a, __CLC_GENTYPE b);
OpenPOWER on IntegriCloud