Displaying 1 result from an estimated 1 matches for "darwinx86_64targetinfo".
2018 Jan 04
0
AllocateTarget for ELF objects on Darwin
...128'
1 error generated.
The target selection is a little tricky here and I wonder if it's on
purpose or not. One solution is to add another line:
TT.setOS(llvm::Triple::UnknownOS);
This line removes the OS info from my triple, so that the
AllocateTarget() function no longer returns a DarwinX86_64TargetInfo
from here:
https://github.com/llvm-mirror/clang/blob/71928e1dab585f336f6d0fb337969eda00ccd19c/lib/Basic/Targets.cpp#L491
The problem with DarwinX86_64TargetInfo is, that it's hard-coded for
Mach-O. It always sets the same data-layout string in the target
description:
https://github.com/llvm-mi...