[lld] [llvm] [lld-macho] Fix thunks for non-__text TEXT sections (PR #99052)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 16:50:58 PDT 2024


================
@@ -0,0 +1,18 @@
+//===- Sections.h ------------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLD_MACHO_SECTIONS_H
+#define LLD_MACHO_SECTIONS_H
+
+#include "lld/Common/LLVM.h"
----------------
ellishg wrote:

```suggestion
#include "llvm/ADT/StringRef.h"
```

You might be able to forward declare `StringRef`, instead.

https://github.com/llvm/llvm-project/pull/99052


More information about the llvm-commits mailing list