mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 17:43:35 +03:00
Readded 'relocation-model' and 'code-model' options
This commit is contained in:
parent
45426ca60d
commit
bf463d61da
3 changed files with 30 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue