This is an archive of the discontinued LLVM Phabricator instance.

[AIX][llvm-ar] Use the Correct Kind for Bitcode File Inputs
ClosedPublic

Authored by qiongsiwu1 on Apr 27 2023, 1:24 PM.

Details

Summary

On AIX, when the input files are LLVM bitcode files, llvm-ar should set the archive kind to K_AIXBIG as well, instead of leaving it to the default K_GNU.

Diff Detail

Unit TestsFailed

Event Timeline

qiongsiwu1 created this revision.Apr 27 2023, 1:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 1:24 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
qiongsiwu1 requested review of this revision.Apr 27 2023, 1:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 1:24 PM

Fix a typo in the test case comment.

Clean up the test a bit.

qiongsiwu1 edited the summary of this revision. (Show Details)Apr 27 2023, 1:31 PM
qiongsiwu1 edited the summary of this revision. (Show Details)
daltenty accepted this revision.Apr 27 2023, 1:47 PM

LGTM with minor nit. Thanks!

llvm/test/tools/llvm-ar/aix-bitcode.test
2

nit: Small nit as this really isn't dependant on what platform the tool runs on, just what platform the bitcode file is for.

This revision is now accepted and ready to land.Apr 27 2023, 1:47 PM

Thanks @daltenty ! The comment is revised.

qiongsiwu1 marked an inline comment as done.Apr 28 2023, 4:53 AM

The pre-commit test failure is most likely resolved by https://github.com/llvm/llvm-project/commit/78d8d016490909ac759c6f76c5f8679bc7a58b2e and not related to this patch. I will land this patch.

This revision was landed with ongoing or failed builds.Apr 28 2023, 6:16 AM
This revision was automatically updated to reflect the committed changes.