[llvm] [TextAPI] Add DylibReader (PR #75006)

Juergen Ributzka via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 15:46:59 PST 2023


================
@@ -0,0 +1,50 @@
+//===- TextAPI/DylibReader.h - TAPI MachO Dylib Reader ----------*- 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// Defines the MachO Dynamic Library Reader.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_TEXTAPI_DYLIBREADER_H
+#define LLVM_TEXTAPI_DYLIBREADER_H
+
+#include "llvm/BinaryFormat/Magic.h"
+#include "llvm/Support/Error.h"
+#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/TextAPI/ArchitectureSet.h"
+#include "llvm/TextAPI/RecordsSlice.h"
+
+namespace llvm {
----------------
ributzka wrote:

Now that C++17 is allowed, nested namespaces could be cleaned up.
`namespace llvm::MachO::DylibReader {`

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


More information about the llvm-commits mailing list