Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Make bitcode_bundle.cpp compile with llvm < 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoechtrager committed Oct 24, 2015
1 parent 92cbda0 commit 3a38e19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cctools/ld64/src/ld/passes/bitcode_bundle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3a38e19

Please sign in to comment.