[llvm] r274005 - Use isPositionIndependent(). NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 05:25:00 PDT 2016
Author: rafael
Date: Tue Jun 28 07:25:00 2016
New Revision: 274005
URL: http://llvm.org/viewvc/llvm-project?rev=274005&view=rev
Log:
Use isPositionIndependent(). NFC.
Modified:
llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=274005&r1=274004&r2=274005&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Tue Jun 28 07:25:00 2016
@@ -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);
}
More information about the llvm-commits
mailing list