From d367fdf28c241ca3e69afcf48a2188a92d26e965 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Fri, 23 Aug 2019 02:20:02 -0700 Subject: [PATCH] Make Bundled_code_header visible for hipRTC usage (#1359) --- hipamd/include/hip/hcc_detail/code_object_bundle.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hipamd/include/hip/hcc_detail/code_object_bundle.hpp b/hipamd/include/hip/hcc_detail/code_object_bundle.hpp index 8b1ae8aa49..32b0c0dbc8 100644 --- a/hipamd/include/hip/hcc_detail/code_object_bundle.hpp +++ b/hipamd/include/hip/hcc_detail/code_object_bundle.hpp @@ -91,6 +91,10 @@ struct Bundled_code { #define magic_string_ "__CLANG_OFFLOAD_BUNDLE__" +#ifdef __GNUC__ +#pragma GCC visibility push (default) +#endif + class Bundled_code_header { // DATA - STATICS static constexpr auto magic_string_sz_ = sizeof(magic_string_) - 1; @@ -172,6 +176,10 @@ class Bundled_code_header { size_t bundled_code_size = 0; }; +#ifdef __GNUC__ +#pragma GCC visibility pop +#endif + // CREATORS template Bundled_code_header::Bundled_code_header(RandomAccessIterator f, RandomAccessIterator l)