diff options
Diffstat (limited to 'llvm/tools/llvm-elfabi/ELFObjHandler.h')
| -rw-r--r-- | llvm/tools/llvm-elfabi/ELFObjHandler.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/llvm/tools/llvm-elfabi/ELFObjHandler.h b/llvm/tools/llvm-elfabi/ELFObjHandler.h new file mode 100644 index 00000000000..496bad0f9ca --- /dev/null +++ b/llvm/tools/llvm-elfabi/ELFObjHandler.h @@ -0,0 +1,33 @@ +//===- ELFObjHandler.h ------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===-----------------------------------------------------------------------===/ +/// +/// This supports reading and writing of elf dynamic shared objects. +/// +//===-----------------------------------------------------------------------===/ + +#ifndef LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H +#define LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H + +#include "llvm/Object/ELFObjectFile.h" +#include "llvm/Object/ELFTypes.h" +#include "llvm/TextAPI/ELF/ELFStub.h" + +namespace llvm { + +class MemoryBuffer; + +namespace elfabi { + +/// Attempt to read a binary ELF file from a MemoryBuffer. +Expected<std::unique_ptr<ELFStub>> readELFFile(MemoryBufferRef Buf); + +} // end namespace elfabi +} // end namespace llvm + +#endif // LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H |

