From: Rafael Espindola Date: Tue, 28 Jun 2016 12:25:00 +0000 (+0000) Subject: Use isPositionIndependent(). NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f62d1a880bce5939b01058ac3d4e98d3f7649a93;p=llvm Use isPositionIndependent(). NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274005 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index c291f82a612..f863f429f43 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -43,8 +43,7 @@ using namespace llvm; void TargetLoweringObjectFile::Initialize(MCContext &ctx, const TargetMachine &TM) { Ctx = &ctx; - InitMCObjectFileInfo(TM.getTargetTriple(), - TM.getRelocationModel() == Reloc::PIC_, + InitMCObjectFileInfo(TM.getTargetTriple(), TM.isPositionIndependent(), TM.getCodeModel(), *Ctx); }