mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-26 21:50:26 +00:00
Make bitcode_bundle.cpp compile with llvm < 3.7
This commit is contained in:
parent
92cbda0465
commit
3a38e19ec2
@ -47,6 +47,18 @@ extern "C" {
|
||||
#include "Bitcode.hpp"
|
||||
#include "macho_relocatable_file.h"
|
||||
|
||||
// ld64-port start
|
||||
#if LTO_API_VERSION < 12
|
||||
static unsigned int lto_api_version() {
|
||||
return LTO_API_VERSION;
|
||||
}
|
||||
|
||||
static lto_code_gen_t lto_codegen_create_in_local_context() {
|
||||
// ::lto_api_version() < 14 makes this function unreachable
|
||||
__builtin_unreachable();
|
||||
}
|
||||
#endif
|
||||
// ld64-port end
|
||||
|
||||
namespace ld {
|
||||
namespace passes {
|
||||
|
Loading…
Reference in New Issue
Block a user