Readded 'relocation-model' and 'code-model' options

This commit is contained in:
Alexey Prokhin 2011-10-24 18:38:06 +04:00
parent 45426ca60d
commit bf463d61da
3 changed files with 30 additions and 1 deletions

View file

@ -487,7 +487,8 @@ int main(int argc, char** argv)
//assert(target.get() && "Could not allocate target machine!");
//gTargetMachine = target.get();
llvm::TargetMachine* target = theTarget->createTargetMachine(triple, mCPU, FeaturesStr);
llvm::TargetMachine* target = theTarget->createTargetMachine(triple, mCPU, FeaturesStr,
mRelocModel, mCodeModel);
gTargetMachine = target;
gTargetData = target->getTargetData();