Make bitcode_bundle.cpp compile with llvm < 3.7

This commit is contained in:
Thomas Pöchtrager 2015-10-24 10:49:20 +02:00
parent 92cbda0465
commit 3a38e19ec2

View File

@ -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 {