Skip to content

Commit 4a22f42

Browse files
Remove unneeded HIDE_FROM_ABI, other small changes
1 parent 1fa64b8 commit 4a22f42

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

libcxx/include/__stacktrace/basic_stacktrace.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,12 @@ class basic_stacktrace : private __stacktrace::_Trace {
132132
// Creation and assignment [stacktrace.basic.cons]
133133

134134
_LIBCPP_ALWAYS_INLINE // Omit this function from the trace
135-
static basic_stacktrace
136-
current(const allocator_type& __alloc = allocator_type()) noexcept {
135+
static basic_stacktrace current(const allocator_type& __alloc = allocator_type()) noexcept {
137136
return current(0, __default_max_depth, __alloc);
138137
}
139138

140139
_LIBCPP_ALWAYS_INLINE // Omit this function from the trace
141-
static basic_stacktrace
142-
current(size_type __skip, const allocator_type& __alloc = allocator_type()) noexcept {
140+
static basic_stacktrace current(size_type __skip, const allocator_type& __alloc = allocator_type()) noexcept {
143141
return current(__skip, __default_max_depth, __alloc);
144142
}
145143

libcxx/src/stacktrace/entry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ _LIBCPP_EXPORTED_FROM_ABI string _Entry::to_string() const {
5151

5252
#endif // _LIBCPP_HAS_LOCALIZATION
5353

54-
_LIBCPP_HIDE_FROM_ABI uintptr_t _Entry::adjusted_addr() const {
54+
uintptr_t _Entry::adjusted_addr() const {
5555
auto sub = __image_ ? __image_->slide_ : 0;
5656
return __addr_ - sub;
5757
}

libcxx/src/stacktrace/images.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct _Image {
3535
char name_[__stacktrace::_Entry::__max_file_len]{0};
3636
bool is_main_prog_{};
3737

38-
_LIBCPP_HIDE_FROM_ABI bool operator<(_Image const& __rhs) const {
38+
bool operator<(_Image const& __rhs) const {
3939
if (loaded_at_ < __rhs.loaded_at_) {
4040
return true;
4141
}
@@ -44,7 +44,7 @@ struct _Image {
4444
}
4545
return strcmp(name_, __rhs.name_) < 0;
4646
}
47-
_LIBCPP_HIDE_FROM_ABI operator bool() const { return name_[0]; }
47+
operator bool() const { return name_[0]; }
4848
};
4949

5050
/**
@@ -67,13 +67,13 @@ struct _Images {
6767
_LIBCPP_EXPORTED_FROM_ABI _Images();
6868

6969
/** Get prog_image by index (0 <= index < count_) */
70-
_LIBCPP_HIDE_FROM_ABI _Image& operator[](size_t __index) {
70+
_Image& operator[](size_t __index) {
7171
_LIBCPP_ASSERT(__index < count_, "index out of range");
7272
return images_.at(__index);
7373
}
7474

7575
/** Image representing the main program, or nullptr if we couldn't find it */
76-
_LIBCPP_HIDE_FROM_ABI _Image* main_prog_image() {
76+
_Image* main_prog_image() {
7777
for (size_t __i = 1; __i < count_ - 1; __i++) {
7878
auto& __image = images_[__i];
7979
if (__image.is_main_prog_) {
@@ -84,7 +84,7 @@ struct _Images {
8484
}
8585

8686
/** Search the sorted images array for one containing this address. */
87-
_LIBCPP_HIDE_FROM_ABI void find(size_t* __index, uintptr_t __addr) {
87+
void find(size_t* __index, uintptr_t __addr) {
8888
// `index` slides left/right as we search through images.
8989
// It's (probably) likely several consecutive entries are from the same image, so
9090
// each iteration's `find` uses the same starting point, making it (probably) constant-time.

libcxx/test/std/diagnostics/stacktrace/basic.hash.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020

2121
#include <cassert>
22-
#include <functional>
2322
#include <stacktrace>
2423

2524
int main(int, char**) {

0 commit comments

Comments
 (0)