Default to PIC on OS X.

driver/target.h is due for a refactoring after the next
release is branched off.
This commit is contained in:
David Nadlinger 2013-05-19 21:04:26 +02:00
parent 4597423dc5
commit edbace8ae8
2 changed files with 8 additions and 1 deletions

View file

@ -547,7 +547,7 @@ int main(int argc, char** argv)
VersionCondition::addPredefinedGlobalIdent("D_LP64");
}
if (mRelocModel == llvm::Reloc::PIC_) {
if (gTargetMachine->getRelocationModel() == llvm::Reloc::PIC_) {
VersionCondition::addPredefinedGlobalIdent("D_PIC");
}