mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-30 06:19:45 +00:00
Refactor RelocVisitor to take an object. This removes some
string comparisons and makes it a bit easier to check individual targets. Patch by Charlie Turner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -924,6 +924,8 @@ unsigned ELFObjectFile<ELFT>::getArch() const {
|
||||
default:
|
||||
report_fatal_error("Invalid ELFCLASS!");
|
||||
}
|
||||
case ELF::EM_PPC:
|
||||
return Triple::ppc;
|
||||
case ELF::EM_PPC64:
|
||||
return IsLittleEndian ? Triple::ppc64le : Triple::ppc64;
|
||||
case ELF::EM_S390:
|
||||
|
Reference in New Issue
Block a user