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 | 25e7f91559439e5f286aa71729fbf11bdf8a4c2f (patch) | |
| tree | aba30e0e0ced4a039c595471f9cb46c021e757aa | |
| parent | 7dce9919e1961feb33261126e82a7bf23897fa9a (diff) | |
| download | bcm5719-llvm-25e7f91559439e5f286aa71729fbf11bdf8a4c2f.tar.gz bcm5719-llvm-25e7f91559439e5f286aa71729fbf11bdf8a4c2f.zip | |
code model is never set to default.
llvm-svn: 75278
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 5c2c1ba263c..f5892208b7a 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/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. |

