add -ffunction-sections arg when building C objects
the other changes in this commit are minor tidying up
This commit is contained in:
@@ -145,8 +145,9 @@ LLVMTargetMachineRef ZigLLVMCreateTargetMachine(LLVMTargetRef T, const char *Tri
|
||||
TargetOptions opt;
|
||||
opt.FunctionSections = function_sections;
|
||||
|
||||
return reinterpret_cast<LLVMTargetMachineRef>(const_cast<TargetMachine *>(
|
||||
reinterpret_cast<Target*>(T)->createTargetMachine(Triple, CPU, Features, opt, RM, CM, OL, JIT)));
|
||||
TargetMachine *TM = reinterpret_cast<Target*>(T)->createTargetMachine(Triple, CPU, Features, opt, RM, CM,
|
||||
OL, JIT);
|
||||
return reinterpret_cast<LLVMTargetMachineRef>(TM);
|
||||
}
|
||||
|
||||
bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMModuleRef module_ref,
|
||||
|
||||
Reference in New Issue
Block a user