mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Handle the memory-ness of all U+ ARM constraints.
Noticed on inspection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
71c38e3359
commit
1312ca8be6
@ -7379,9 +7379,12 @@ ARMTargetLowering::getConstraintType(const std::string &Constraint) const {
|
||||
case 'l': return C_RegisterClass;
|
||||
case 'w': return C_RegisterClass;
|
||||
}
|
||||
} else {
|
||||
if (Constraint == "Uv")
|
||||
return C_Memory;
|
||||
} else if (Constraint.size() == 2) {
|
||||
switch (Constraint[0]) {
|
||||
default: break;
|
||||
// All 'U+' constraints are addresses.
|
||||
case 'U': return C_Memory;
|
||||
}
|
||||
}
|
||||
return TargetLowering::getConstraintType(Constraint);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user