[llvm] [llvm-ar][Object][COFF] Add support for EC symbols to llvm-ar. (PR #85230)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 01:43:45 PDT 2024
================
@@ -678,6 +678,25 @@ static bool isECObject(object::SymbolicFile &Obj) {
return false;
}
+static bool isAnyArm64COFF(object::SymbolicFile &Obj) {
+ if (Obj.isCOFF())
+ return COFF::isAnyArm64(cast<COFFObjectFile>(&Obj)->getMachine());
+
+ if (Obj.isCOFFImportFile())
+ return COFF::isAnyArm64(cast<COFFImportFile>(&Obj)->getMachine());
+
+ if (Obj.isIR()) {
----------------
jh7370 wrote:
Test case?
https://github.com/llvm/llvm-project/pull/85230
More information about the llvm-commits
mailing list