[all-commits] [llvm/llvm-project] b6178c: [OffloadPackager] Use appropriate kind for LTO bit...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Jul 4 14:34:35 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b6178ccfe85238e123ecf29a12af23d3b70bef22
https://github.com/llvm/llvm-project/commit/b6178ccfe85238e123ecf29a12af23d3b70bef22
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-07-04 (Mon, 04 Jul 2022)
Changed paths:
M clang/tools/clang-offload-packager/CMakeLists.txt
M clang/tools/clang-offload-packager/ClangOffloadPackager.cpp
Log Message:
-----------
[OffloadPackager] Use appropriate kind for LTO bitcode
Summary:
Currently we just check the extension to set the image kind. This
incorrectly labels the `.o` files created during LTO as object files.
This patch simply adds a check for the bitcode magic bytes instead.
More information about the All-commits
mailing list