diff options
| author | Alexandros Naskos <alex_naskos@hotmail.com> | 2018-04-16 03:26:10 +0300 |
|---|---|---|
| committer | Alexandros Naskos <alex_naskos@hotmail.com> | 2018-04-16 03:26:10 +0300 |
| commit | 253ecd5c11747f49575b8425a506c2fecfe26ee2 (patch) | |
| tree | 4f8bb099e72c9f246278bf8cef827607955404e7 /src/zig_llvm.cpp | |
| parent | b9360640cefd1aa30dedf71a0c6b7bddc51a6ae3 (diff) | |
| download | zig-253ecd5c11747f49575b8425a506c2fecfe26ee2.tar.gz zig-253ecd5c11747f49575b8425a506c2fecfe26ee2.zip | |
Added ReleaseSmall mode
Diffstat (limited to 'src/zig_llvm.cpp')
| -rw-r--r-- | src/zig_llvm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index b4eef13cc1..ef0e9f24a8 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -81,7 +81,7 @@ static const bool assertions_on = false; #endif bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMModuleRef module_ref, - const char *filename, ZigLLVM_EmitOutputType output_type, char **error_message, bool is_debug) + const char *filename, ZigLLVM_EmitOutputType output_type, char **error_message, bool is_debug, bool is_small) { std::error_code EC; raw_fd_ostream dest(filename, EC, sys::fs::F_None); @@ -100,7 +100,7 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM return true; } PMBuilder->OptLevel = target_machine->getOptLevel(); - PMBuilder->SizeLevel = 0; + PMBuilder->SizeLevel = is_small ? 1 : 0; PMBuilder->DisableTailCalls = is_debug; PMBuilder->DisableUnitAtATime = is_debug; |
