mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Also recognize ARM v4t and v5e variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133002 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ae4168e36
commit
a6eb2562b6
@ -505,7 +505,13 @@ TargetAsmBackend *llvm::createARMAsmBackend(const Target &T,
|
||||
Triple TheTriple(TT);
|
||||
|
||||
if (TheTriple.isOSDarwin()) {
|
||||
if (TheTriple.getArchName() == "armv6" ||
|
||||
if (TheTriple.getArchName() == "armv4t" ||
|
||||
TheTriple.getArchName() == "thumbv4t")
|
||||
return new DarwinARMAsmBackend(T, object::mach::CSARM_V4T);
|
||||
else if (TheTriple.getArchName() == "armv5e" ||
|
||||
TheTriple.getArchName() == "thumbv5e")
|
||||
return new DarwinARMAsmBackend(T, object::mach::CSARM_V5TEJ);
|
||||
else if (TheTriple.getArchName() == "armv6" ||
|
||||
TheTriple.getArchName() == "thumbv6")
|
||||
return new DarwinARMAsmBackend(T, object::mach::CSARM_V6);
|
||||
return new DarwinARMAsmBackend(T, object::mach::CSARM_V7);
|
||||
|
Loading…
Reference in New Issue
Block a user