Skip to content

Commit

Permalink
Fix LLVM 3.9 API breakage.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Jan 20, 2016
1 parent 19003ea commit 368cb44
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 368cb44

Please sign in to comment.