diff options
author | Anirudh Prasad <anirudh_prasad@hotmail.com> | 2021-07-20 10:50:18 -0400 |
---|---|---|
committer | Anirudh Prasad <anirudh_prasad@hotmail.com> | 2021-07-20 10:50:47 -0400 |
commit | 0977f31cecf8aa4ad1be72748179f4d6a902daf4 (patch) | |
tree | 46535babc10d848540b6a4229a46cbe77cf62487 /llvm/lib/Object/SymbolicFile.cpp | |
parent | fd855c24c72ce01573d726317acaaefc9809d9dc (diff) | |
download | llvm-0977f31cecf8aa4ad1be72748179f4d6a902daf4.zip llvm-0977f31cecf8aa4ad1be72748179f4d6a902daf4.tar.gz llvm-0977f31cecf8aa4ad1be72748179f4d6a902daf4.tar.bz2 |
[SystemZ][z/OS] Add GOFF support to file magic identification
- This patch adds in the GOFF format to the file magic identification logic in LLVM
- Currently, for the object file support, GOFF is marked as having as an error
- However, this is only temporary until https://reviews.llvm.org/D98437 is merged in
Reviewed By: abhina.sreeskantharajan
Differential Revision: https://reviews.llvm.org/D105993
Diffstat (limited to 'llvm/lib/Object/SymbolicFile.cpp')
-rw-r--r-- | llvm/lib/Object/SymbolicFile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Object/SymbolicFile.cpp b/llvm/lib/Object/SymbolicFile.cpp index 34a2c5e..58db5b6 100644 --- a/llvm/lib/Object/SymbolicFile.cpp +++ b/llvm/lib/Object/SymbolicFile.cpp @@ -53,6 +53,7 @@ SymbolicFile::createSymbolicFile(MemoryBufferRef Object, file_magic Type, case file_magic::elf_executable: case file_magic::elf_shared_object: case file_magic::elf_core: + case file_magic::goff_object: case file_magic::macho_executable: case file_magic::macho_fixed_virtual_memory_shared_lib: case file_magic::macho_core: @@ -102,6 +103,7 @@ bool SymbolicFile::isSymbolicFile(file_magic Type, const LLVMContext *Context) { case file_magic::elf_executable: case file_magic::elf_shared_object: case file_magic::elf_core: + case file_magic::goff_object: case file_magic::macho_executable: case file_magic::macho_fixed_virtual_memory_shared_lib: case file_magic::macho_core: |