aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorAnirudh Prasad <anirudh_prasad@hotmail.com>2021-07-20 10:50:18 -0400
committerAnirudh Prasad <anirudh_prasad@hotmail.com>2021-07-20 10:50:47 -0400
commit0977f31cecf8aa4ad1be72748179f4d6a902daf4 (patch)
tree46535babc10d848540b6a4229a46cbe77cf62487 /llvm/lib/Object/ObjectFile.cpp
parentfd855c24c72ce01573d726317acaaefc9809d9dc (diff)
downloadllvm-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/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp
index 7b17c8e..5c89443 100644
--- a/llvm/lib/Object/ObjectFile.cpp
+++ b/llvm/lib/Object/ObjectFile.cpp
@@ -145,6 +145,7 @@ ObjectFile::createObjectFile(MemoryBufferRef Object, file_magic Type,
case file_magic::windows_resource:
case file_magic::pdb:
case file_magic::minidump:
+ case file_magic::goff_object:
return errorCodeToError(object_error::invalid_file_type);
case file_magic::tapi_file:
return errorCodeToError(object_error::invalid_file_type);