Correctly define D_PIC version identifier when relocation model is PIC.

This commit is contained in:
alexrp
2012-06-09 20:55:03 +02:00
committed by David Nadlinger
parent 98261321d8
commit 22302f5f45

View File

@@ -593,6 +593,10 @@ LDC_TARGETS
VersionCondition::addPredefinedGlobalIdent("D_LP64");
}
if (mRelocModel == llvm::Reloc::PIC_) {
VersionCondition::addPredefinedGlobalIdent("D_PIC");
}
// parse the OS out of the target triple
// see http://gcc.gnu.org/install/specific.html for details
// also llvm's different SubTargets have useful information