Skip to content

Commit

Permalink
Merge pull request #14744 from JuliaLang/yyc/llvm39-binary
Browse files Browse the repository at this point in the history
Fix LLVM 3.9 API breakage
  • Loading branch information
yuyichao committed Jan 22, 2016
2 parents 2b1dbf3 + 368cb44 commit df928bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ class DebugObjectRegistrar {
auto oit = Objects.begin();
auto lit = LOS.begin();
while (oit != Objects.end()) {
#ifdef LLVM39
const auto &Object = (*oit)->getBinary();
#else
auto &Object = *oit;
#endif
auto &LO = *lit;

OwningBinary<ObjectFile> SavedObject = LO->getObjectForDebug(*Object);
Expand Down

0 comments on commit df928bd

Please sign in to comment.