SWDEV-1 - Remove unused code.

To fix Linux hsail build error.

Change-Id: I4cab060e0e8cefb4215cefa61b840a94d51748a4
This commit is contained in:
Jason Tang
2022-05-17 18:03:28 -04:00
committed by Jason Tang
parent 0ed1a369fe
commit c7000b4f6f
2 changed files with 0 additions and 30 deletions
-20
View File
@@ -430,12 +430,6 @@ bool Elf::getTarget(uint16_t& machine, ElfPlatform& platform) const
platform = CPU_PLATFORM;
machine = mach - CPU_BASE;
}
#if !defined(WITH_LIGHTNING_COMPILER)
else if ( (mach >= CAL_FIRST) && (mach <= CAL_LAST)) {
platform = CAL_PLATFORM;
machine = mach - CAL_BASE;
}
#endif // !defined(WITH_LIGHTNING_COMPILER)
else if (mach == EM_386
|| mach == EM_HSAIL
|| mach == EM_HSAIL_64
@@ -1013,20 +1007,6 @@ bool Elf::isCALTarget(const char* p, signed char ec)
return false;
}
#if !defined(WITH_LIGHTNING_COMPILER)
Elf64_Half machine;
if (ec == ELFCLASS32) {
machine = ((Elf32_Ehdr*)p)->e_machine;
}
else {
machine = ((Elf64_Ehdr*)p)->e_machine;
}
if ( (machine >= Elf::CAL_FIRST) && (machine <= Elf::CAL_LAST) ) {
return true;
}
#endif // !defined(WITH_LIGHTNING_COMPILER)
return false;
}