[Object] Update ObjectFile::makeTriple for XCOFF
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Tue, 31 Mar 2020 21:24:22 +0000 (17:24 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Tue, 31 Mar 2020 21:26:30 +0000 (17:26 -0400)
commit478af4479ab65b90a4c7bd6460ff685d8e95d625
treea72384a0bab16eeac499164be4b3143171eb4373
parent494abe139a9aab991582f1b3f3370b99b252944c
[Object] Update ObjectFile::makeTriple for XCOFF

Summary:
When we encounter an XCOFF file, reflect that in the triple information.
In addition to knowing the object file format, we know that the
associated OS is AIX.

This means that we can expect that there is no output difference in the
processing of an XCOFF32 input file between cases where the triple is
left unspecified by the user and cases where the user specifies
`--triple powerpc-ibm-aix` explicitly.

Reviewers: jhenderson, sfertile, jasonliu, daltenty

Reviewed By: jasonliu

Subscribers: wuzish, nemanjai, hiraditya, MaskRay, rupprecht, steven.zhang, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77025
llvm/lib/Object/ObjectFile.cpp
llvm/test/CodeGen/PowerPC/aix-return55.ll
llvm/test/tools/llvm-objdump/XCOFF/disassemble-all.test