Skip to content

Commit 316e17c

Browse files
Move stacktrace headers out of experimental
1 parent 6d4431a commit 316e17c

File tree

12 files changed

+57
-64
lines changed

12 files changed

+57
-64
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,12 @@ set(files
727727
__ranges/views.h
728728
__ranges/zip_view.h
729729
__split_buffer
730+
__stacktrace/basic_stacktrace.h
731+
__stacktrace/detail/alloc.h
732+
__stacktrace/detail/context.h
733+
__stacktrace/detail/entry.h
734+
__stacktrace/detail/to_string.h
735+
__stacktrace/stacktrace_entry.h
730736
__std_mbstate_t.h
731737
__stop_token/atomic_unique_lock.h
732738
__stop_token/intrusive_list_view.h
@@ -991,17 +997,10 @@ set(files
991997
experimental/__simd/traits.h
992998
experimental/__simd/utility.h
993999
experimental/__simd/vec_ext.h
994-
experimental/__stacktrace/basic_stacktrace.h
995-
experimental/__stacktrace/detail/alloc.h
996-
experimental/__stacktrace/detail/context.h
997-
experimental/__stacktrace/detail/entry.h
998-
experimental/__stacktrace/detail/to_string.h
999-
experimental/__stacktrace/stacktrace_entry.h
10001000
experimental/iterator
10011001
experimental/memory
10021002
experimental/propagate_const
10031003
experimental/simd
1004-
experimental/stacktrace
10051004
experimental/type_traits
10061005
experimental/utility
10071006
ext/__hash
@@ -1054,6 +1053,7 @@ set(files
10541053
span
10551054
sstream
10561055
stack
1056+
stacktrace
10571057
stdatomic.h
10581058
stdbool.h
10591059
stddef.h

libcxx/include/experimental/__stacktrace/basic_stacktrace.h renamed to libcxx/include/__stacktrace/basic_stacktrace.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
#include <memory>
3838
#include <string>
3939

40-
#include <experimental/__stacktrace/detail/alloc.h>
41-
#include <experimental/__stacktrace/detail/context.h>
42-
#include <experimental/__stacktrace/detail/to_string.h>
40+
#include <__stacktrace/detail/alloc.h>
41+
#include <__stacktrace/detail/context.h>
42+
#include <__stacktrace/detail/to_string.h>
4343

4444
_LIBCPP_BEGIN_NAMESPACE_STD
4545

libcxx/include/experimental/__stacktrace/stacktrace_entry.h renamed to libcxx/include/__stacktrace/stacktrace_entry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <cstdint>
3434
#include <string>
3535

36-
#include "experimental/__stacktrace/detail/entry.h"
36+
#include <__stacktrace/detail/entry.h>
3737

3838
_LIBCPP_BEGIN_NAMESPACE_STD
3939

libcxx/include/module.modulemap.in

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,6 +1985,17 @@ module std [system] {
19851985
export *
19861986
}
19871987

1988+
module stacktrace {
1989+
module basic_stacktrace { header "__stacktrace/basic_stacktrace.h" }
1990+
module alloc { header "__stacktrace/detail/alloc.h" }
1991+
module context { header "__stacktrace/detail/context.h" }
1992+
module entry { header "__stacktrace/detail/entry.h" }
1993+
module to_string { header "__stacktrace/detail/to_string.h" }
1994+
module stacktrace_entry { header "__stacktrace/stacktrace_entry.h" }
1995+
header "stacktrace"
1996+
export *
1997+
}
1998+
19881999
module stdexcept {
19892000
header "stdexcept"
19902001
export *
@@ -2225,16 +2236,6 @@ module std [system] {
22252236
header "experimental/simd"
22262237
export *
22272238
}
2228-
module stacktrace {
2229-
private header "experimental/__stacktrace/basic_stacktrace.h"
2230-
private header "experimental/__stacktrace/detail/alloc.h"
2231-
private header "experimental/__stacktrace/detail/context.h"
2232-
private header "experimental/__stacktrace/detail/entry.h"
2233-
private header "experimental/__stacktrace/detail/to_string.h"
2234-
private header "experimental/__stacktrace/stacktrace_entry.h"
2235-
header "experimental/stacktrace"
2236-
export *
2237-
}
22382239
}
22392240

22402241
// Implementation detail headers that are private to libc++. These modules

libcxx/include/experimental/stacktrace renamed to libcxx/include/stacktrace

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ namespace std {
180180
_LIBCPP_PUSH_MACROS
181181
# include <__undef_macros>
182182

183-
# include "experimental/__stacktrace/basic_stacktrace.h"
184-
# include "experimental/__stacktrace/stacktrace_entry.h"
183+
# include <__stacktrace/basic_stacktrace.h>
184+
# include <__stacktrace/stacktrace_entry.h>
185185

186186
_LIBCPP_POP_MACROS
187187

libcxx/modules/std.compat.cppm.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ module;
7171
# if __has_include(<spanstream>)
7272
# error "please update the header information for <spanstream> in headers_not_available in utils/libcxx/header_information.py"
7373
# endif // __has_include(<spanstream>)
74-
# if __has_include(<stacktrace>)
75-
# error "please update the header information for <stacktrace> in headers_not_available in utils/libcxx/header_information.py"
76-
# endif // __has_include(<stacktrace>)
7774
# if __has_include(<stdfloat>)
7875
# error "please update the header information for <stdfloat> in headers_not_available in utils/libcxx/header_information.py"
7976
# endif // __has_include(<stdfloat>)
@@ -86,4 +83,4 @@ export module std.compat;
8683
export import std;
8784

8885

89-
@LIBCXX_MODULE_STD_COMPAT_INCLUDE_SOURCES@
86+
@LIBCXX_MODULE_STD_COMPAT_INCLUDE_SOURCES@

libcxx/modules/std.cppm.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ module;
181181
# if __has_include(<spanstream>)
182182
# error "please update the header information for <spanstream> in headers_not_available in utils/libcxx/header_information.py"
183183
# endif // __has_include(<spanstream>)
184-
# if __has_include(<stacktrace>)
185-
# error "please update the header information for <stacktrace> in headers_not_available in utils/libcxx/header_information.py"
186-
# endif // __has_include(<stacktrace>)
187184
# if __has_include(<stdfloat>)
188185
# error "please update the header information for <stdfloat> in headers_not_available in utils/libcxx/header_information.py"
189186
# endif // __has_include(<stdfloat>)

llvm/utils/gn/secondary/libcxx/src/BUILD.gn

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,38 @@ cxx_sources = [
167167
"ryu/d2s.cpp",
168168
"ryu/f2s.cpp",
169169
"shared_mutex.cpp",
170+
# "stacktrace/alloc.cpp",
171+
# "stacktrace/common/config.h",
172+
# "stacktrace/common/debug.cpp",
173+
# "stacktrace/common/debug.h",
174+
# "stacktrace/common/failed.h",
175+
# "stacktrace/common/fd.cpp",
176+
# "stacktrace/common/fd.h",
177+
# "stacktrace/common/images.h",
178+
# "stacktrace/context.cpp",
179+
# "stacktrace/linux/linux-dl.cpp",
180+
# "stacktrace/linux/linux-elf.cpp",
181+
# "stacktrace/linux/linux-sym.cpp",
182+
# "stacktrace/linux/linux.h",
183+
# "stacktrace/osx/osx.cpp",
184+
# "stacktrace/osx/osx.h",
185+
# "stacktrace/stacktrace.cpp",
186+
# "stacktrace/tools/addr2line.cpp",
187+
# "stacktrace/tools/atos.cpp",
188+
# "stacktrace/tools/llvm_symbolizer.cpp",
189+
# "stacktrace/tools/pspawn.h",
190+
# "stacktrace/tools/tools.h",
191+
# "stacktrace/tools/toolspawner.cpp",
192+
# "stacktrace/unwind/unwind.cpp",
193+
# "stacktrace/unwind/unwind.h",
194+
# "stacktrace/windows/dbghelp_dll.cpp",
195+
# "stacktrace/windows/dbghelp_dll.h",
196+
# "stacktrace/windows/dll.cpp",
197+
# "stacktrace/windows/dll.h",
198+
# "stacktrace/windows/psapi_dll.cpp",
199+
# "stacktrace/windows/psapi_dll.h",
200+
# "stacktrace/windows/win_impl.cpp",
201+
# "stacktrace/windows/win_impl.h",
170202
"stdexcept.cpp",
171203
"string.cpp",
172204
"strstream.cpp",
@@ -317,40 +349,6 @@ if (libcxx_enable_experimental) {
317349
output_dir = runtimes_dir
318350
output_name = "c++experimental"
319351
sources = [ "experimental/keep.cpp" ]
320-
sources += [
321-
"experimental/stacktrace/alloc.cpp",
322-
"experimental/stacktrace/common/config.h",
323-
"experimental/stacktrace/common/debug.cpp",
324-
"experimental/stacktrace/common/debug.h",
325-
"experimental/stacktrace/common/failed.h",
326-
"experimental/stacktrace/common/fd.cpp",
327-
"experimental/stacktrace/common/fd.h",
328-
"experimental/stacktrace/common/images.h",
329-
"experimental/stacktrace/context.cpp",
330-
"experimental/stacktrace/linux/linux-dl.cpp",
331-
"experimental/stacktrace/linux/linux-elf.cpp",
332-
"experimental/stacktrace/linux/linux-sym.cpp",
333-
"experimental/stacktrace/linux/linux.h",
334-
"experimental/stacktrace/osx/osx.cpp",
335-
"experimental/stacktrace/osx/osx.h",
336-
"experimental/stacktrace/stacktrace.cpp",
337-
"experimental/stacktrace/tools/addr2line.cpp",
338-
"experimental/stacktrace/tools/atos.cpp",
339-
"experimental/stacktrace/tools/llvm_symbolizer.cpp",
340-
"experimental/stacktrace/tools/pspawn.h",
341-
"experimental/stacktrace/tools/tools.h",
342-
"experimental/stacktrace/tools/toolspawner.cpp",
343-
"experimental/stacktrace/unwind/unwind.cpp",
344-
"experimental/stacktrace/unwind/unwind.h",
345-
"experimental/stacktrace/windows/dbghelp_dll.cpp",
346-
"experimental/stacktrace/windows/dbghelp_dll.h",
347-
"experimental/stacktrace/windows/dll.cpp",
348-
"experimental/stacktrace/windows/dll.h",
349-
"experimental/stacktrace/windows/psapi_dll.cpp",
350-
"experimental/stacktrace/windows/psapi_dll.h",
351-
"experimental/stacktrace/windows/win_impl.cpp",
352-
"experimental/stacktrace/windows/win_impl.h",
353-
]
354352
if (libcxx_enable_filesystem && libcxx_enable_time_zone_database) {
355353
sources += [
356354
# TODO TZDB The exception could be moved in chrono once the TZDB library

0 commit comments

Comments
 (0)