[UpdateCCTestChecks] Detect function mangled name on separate line
[llvm-core.git] / tools / llvm-elfabi / ELFObjHandler.h
blob97f0d68f4d4fbcad76511d2847e0058dc7e97a7c
1 //===- ELFObjHandler.h ------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===-----------------------------------------------------------------------===/
8 ///
9 /// This supports reading and writing of elf dynamic shared objects.
10 ///
11 //===-----------------------------------------------------------------------===/
13 #ifndef LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H
14 #define LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H
16 #include "llvm/Object/ELFObjectFile.h"
17 #include "llvm/Object/ELFTypes.h"
18 #include "llvm/TextAPI/ELF/ELFStub.h"
20 namespace llvm {
22 class MemoryBuffer;
24 namespace elfabi {
26 /// Attempt to read a binary ELF file from a MemoryBuffer.
27 Expected<std::unique_ptr<ELFStub>> readELFFile(MemoryBufferRef Buf);
29 } // end namespace elfabi
30 } // end namespace llvm
32 #endif // LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H