1
Fork 0

add -Z emit-stack-sizes

This commit is contained in:
Jorge Aparicio 2018-09-13 19:43:15 +02:00
parent c3a1a0d340
commit 3c0907ce51
4 changed files with 10 additions and 2 deletions

View file

@ -373,7 +373,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
bool DataSections,
bool TrapUnreachable,
bool Singlethread,
bool AsmComments) {
bool AsmComments,
bool EmitStackSizeSection) {
auto OptLevel = fromRust(RustOptLevel);
auto RM = fromRust(RustReloc);
@ -411,6 +412,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
}
#if LLVM_VERSION_GE(6, 0)
Options.EmitStackSizeSection = EmitStackSizeSection;
Optional<CodeModel::Model> CM;
#else
CodeModel::Model CM = CodeModel::Model::Default;