[llvm-commits] [llvm] r45312 - /llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Evan Cheng
evan.cheng at apple.com
Sat Dec 22 01:14:34 PST 2007
Author: evancheng
Date: Sat Dec 22 03:14:34 2007
New Revision: 45312
URL: http://llvm.org/viewvc/llvm-project?rev=45312&view=rev
Log:
Oops.
Modified:
llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?rev=45312&r1=45311&r2=45312&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetMachine.cpp Sat Dec 22 03:14:34 2007
@@ -170,8 +170,7 @@
bool X86TargetMachine::addCodeEmitter(FunctionPassManager &PM, bool Fast,
bool DumpAsm, MachineCodeEmitter &MCE) {
// FIXME: Move this to TargetJITInfo!
- if (getRelocationModel() == Reloc::Default)
- setRelocationModel(Reloc::Static);
+ setRelocationModel(Reloc::Static);
Subtarget.setPICStyle(PICStyle::None);
// JIT cannot ensure globals are placed in the lower 4G of address.
More information about the llvm-commits
mailing list