From bbcaa40227528485943781b1ab31a4821ac5c25e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 15 Mar 2010 21:09:38 +0000 Subject: Now that the default for Darwin platforms is to place the LSDA into the TEXT section, remove the target-specific code that performs this. llvm-svn: 98580 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp') diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index e810cea17a0..491c118fe3b 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -37,7 +37,6 @@ #include "llvm/CodeGen/PseudoSourceValue.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCContext.h" -#include "llvm/MC/MCSectionMachO.h" #include "llvm/MC/MCSymbol.h" #include "llvm/ADT/BitVector.h" #include "llvm/ADT/SmallSet.h" @@ -74,11 +73,6 @@ static TargetLoweringObjectFile *createTLOF(X86TargetMachine &TM) { switch (TM.getSubtarget().TargetType) { default: llvm_unreachable("unknown subtarget type"); case X86Subtarget::isDarwin: - if (TM.getSubtarget().is64Bit()) - return new X8664_MachoTargetObjectFile(); - else - return new X86_MachoTargetObjectFile(); - if (TM.getSubtarget().is64Bit()) return new X8664_MachoTargetObjectFile(); return new TargetLoweringObjectFileMachO(); -- cgit v1.2.3