summaryrefslogtreecommitdiff
path: root/compiler/linker
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2022-11-16 12:44:15 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2022-11-18 08:29:35 +0000
commitbdbee06484b13d77cc70c5be388e69a4f8c21170 (patch)
tree98cbea43ed3d9ee0b2089a90b1be9e79592fc9d1 /compiler/linker
parentb1baa738ddf58b02793ba140f2404d01394fa687 (diff)
Make remaining compiler/ symbols hidden.
And mark required symbols with EXPORT. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing --jit Change-Id: I1b4e3c1ef9006924456dc36ec906bf74b62adab4
Diffstat (limited to 'compiler/linker')
-rw-r--r--compiler/linker/linker_patch.h5
-rw-r--r--compiler/linker/linker_patch_test.cc3
-rw-r--r--compiler/linker/output_stream_test.cc2
3 files changed, 6 insertions, 4 deletions
diff --git a/compiler/linker/linker_patch.h b/compiler/linker/linker_patch.h
index 7da1e82d91..8ed7fce0ff 100644
--- a/compiler/linker/linker_patch.h
+++ b/compiler/linker/linker_patch.h
@@ -23,9 +23,10 @@
#include <android-base/logging.h>
#include "base/bit_utils.h"
+#include "base/macros.h"
#include "dex/method_reference.h"
-namespace art {
+namespace art HIDDEN {
class DexFile;
@@ -328,7 +329,7 @@ class LinkerPatch {
friend bool operator==(const LinkerPatch& lhs, const LinkerPatch& rhs);
friend bool operator<(const LinkerPatch& lhs, const LinkerPatch& rhs);
};
-std::ostream& operator<<(std::ostream& os, LinkerPatch::Type type);
+EXPORT std::ostream& operator<<(std::ostream& os, LinkerPatch::Type type);
inline bool operator==(const LinkerPatch& lhs, const LinkerPatch& rhs) {
return lhs.literal_offset_ == rhs.literal_offset_ &&
diff --git a/compiler/linker/linker_patch_test.cc b/compiler/linker/linker_patch_test.cc
index 997418c4f7..1c46da15e1 100644
--- a/compiler/linker/linker_patch_test.cc
+++ b/compiler/linker/linker_patch_test.cc
@@ -16,9 +16,10 @@
#include <gtest/gtest.h>
+#include "base/macros.h"
#include "linker_patch.h"
-namespace art {
+namespace art HIDDEN {
namespace linker {
TEST(LinkerPatch, LinkerPatchOperators) {
diff --git a/compiler/linker/output_stream_test.cc b/compiler/linker/output_stream_test.cc
index 31a8516f9e..22b174fce6 100644
--- a/compiler/linker/output_stream_test.cc
+++ b/compiler/linker/output_stream_test.cc
@@ -23,7 +23,7 @@
#include "stream/file_output_stream.h"
#include "stream/vector_output_stream.h"
-namespace art {
+namespace art HIDDEN {
namespace linker {
class OutputStreamTest : public CommonArtTest {