mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-19 01:48:34 +00:00
code model is never set to default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7822326df
commit
f1d6bd5cbe
@ -424,8 +424,7 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM) {
|
|||||||
// Handle constant address.
|
// Handle constant address.
|
||||||
if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
||||||
// Can't handle alternate code models yet.
|
// Can't handle alternate code models yet.
|
||||||
if (TM.getCodeModel() != CodeModel::Default &&
|
if (TM.getCodeModel() != CodeModel::Small)
|
||||||
TM.getCodeModel() != CodeModel::Small)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// RIP-relative addresses can't have additional register operands.
|
// RIP-relative addresses can't have additional register operands.
|
||||||
@ -554,8 +553,7 @@ bool X86FastISel::X86SelectCallAddress(Value *V, X86AddressMode &AM) {
|
|||||||
// Handle constant address.
|
// Handle constant address.
|
||||||
if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
||||||
// Can't handle alternate code models yet.
|
// Can't handle alternate code models yet.
|
||||||
if (TM.getCodeModel() != CodeModel::Default &&
|
if (TM.getCodeModel() != CodeModel::Small)
|
||||||
TM.getCodeModel() != CodeModel::Small)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// RIP-relative addresses can't have additional register operands.
|
// RIP-relative addresses can't have additional register operands.
|
||||||
|
Loading…
Reference in New Issue
Block a user