[libcxx-commits] [PATCH] D86766: [libunwind] Fix a few libunwind includes
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 7 14:30:34 PDT 2022
ldionne updated this revision to Diff 458563.
ldionne added a comment.
Here we go -- rebase onto main. I'll land once CI is green.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86766/new/
https://reviews.llvm.org/D86766
Files:
libunwind/src/CompactUnwinder.hpp
libunwind/src/DwarfInstructions.hpp
libunwind/src/UnwindCursor.hpp
Index: libunwind/src/UnwindCursor.hpp
===================================================================
--- libunwind/src/UnwindCursor.hpp
+++ libunwind/src/UnwindCursor.hpp
@@ -38,6 +38,17 @@
#define _LIBUNWIND_CHECK_LINUX_SIGRETURN 1
#endif
+#include "AddressSpace.hpp"
+#include "CompactUnwinder.hpp"
+#include "config.h"
+#include "DwarfInstructions.hpp"
+#include "EHHeaderParser.hpp"
+#include "libunwind.h"
+#include "libunwind_ext.h"
+#include "Registers.hpp"
+#include "RWMutex.hpp"
+#include "Unwind-EHABI.h"
+
#if defined(_LIBUNWIND_SUPPORT_SEH_UNWIND)
// Provide a definition for the DISPATCHER_CONTEXT struct for old (Win7 and
// earlier) SDKs.
@@ -75,18 +86,6 @@
#endif
-#include "config.h"
-
-#include "AddressSpace.hpp"
-#include "CompactUnwinder.hpp"
-#include "config.h"
-#include "DwarfInstructions.hpp"
-#include "EHHeaderParser.hpp"
-#include "libunwind.h"
-#include "Registers.hpp"
-#include "RWMutex.hpp"
-#include "Unwind-EHABI.h"
-
namespace libunwind {
#if defined(_LIBUNWIND_SUPPORT_DWARF_UNWIND)
Index: libunwind/src/DwarfInstructions.hpp
===================================================================
--- libunwind/src/DwarfInstructions.hpp
+++ libunwind/src/DwarfInstructions.hpp
@@ -16,10 +16,11 @@
#include <stdio.h>
#include <stdlib.h>
-#include "dwarf2.h"
-#include "Registers.hpp"
#include "DwarfParser.hpp"
+#include "Registers.hpp"
#include "config.h"
+#include "dwarf2.h"
+#include "libunwind_ext.h"
namespace libunwind {
Index: libunwind/src/CompactUnwinder.hpp
===================================================================
--- libunwind/src/CompactUnwinder.hpp
+++ libunwind/src/CompactUnwinder.hpp
@@ -19,6 +19,7 @@
#include <mach-o/compact_unwind_encoding.h>
#include "Registers.hpp"
+#include "libunwind_ext.h"
#define EXTRACT_BITS(value, mask) \
((value >> __builtin_ctz(mask)) & (((1 << __builtin_popcount(mask))) - 1))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86766.458563.patch
Type: text/x-patch
Size: 1960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220907/c186c42b/attachment-0001.bin>
More information about the libcxx-commits
mailing list