diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-10 21:03:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-10 21:03:06 +0000 |
commit | f1d6bd5cbe6ae4a9327b159dcbc0810f0affd0fb (patch) | |
tree | 4c1993691258459303f2a566ea6731de6e818b65 /lib | |
parent | c7822326df54ad766996875851f0796c14268c13 (diff) | |
download | external_llvm-f1d6bd5cbe6ae4a9327b159dcbc0810f0affd0fb.zip external_llvm-f1d6bd5cbe6ae4a9327b159dcbc0810f0affd0fb.tar.gz external_llvm-f1d6bd5cbe6ae4a9327b159dcbc0810f0affd0fb.tar.bz2 |
code model is never set to default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 5c2c1ba..f589220 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -424,8 +424,7 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM) { // Handle constant address. if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { // Can't handle alternate code models yet. - if (TM.getCodeModel() != CodeModel::Default && - TM.getCodeModel() != CodeModel::Small) + if (TM.getCodeModel() != CodeModel::Small) return false; // RIP-relative addresses can't have additional register operands. @@ -554,8 +553,7 @@ bool X86FastISel::X86SelectCallAddress(Value *V, X86AddressMode &AM) { // Handle constant address. if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { // Can't handle alternate code models yet. - if (TM.getCodeModel() != CodeModel::Default && - TM.getCodeModel() != CodeModel::Small) + if (TM.getCodeModel() != CodeModel::Small) return false; // RIP-relative addresses can't have additional register operands. |