Skip to content

Commit

Permalink
Merge pull request #18 from cxm95/containers
Browse files Browse the repository at this point in the history
Add support for LLVM4/5/6/7 @containers branch
  • Loading branch information
sampsyo authored May 2, 2018
2 parents e48269f + b91b450 commit ab05e55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions skeleton/Skeleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ namespace {
errs() << "In a function called " << F.getName() << "!\n";

errs() << "Function body:\n";
F.dump();
//F.dump(); Out-of-Date: no more dump support in modern llvm unless you enable it at compile time.
F.print(llvm::errs());

for (auto &B : F) {
errs() << "Basic block:\n";
B.dump();
B.print(llvm::errs(), true);

for (auto &I : B) {
errs() << "Instruction: ";
I.dump();
I.print(llvm::errs(), true);
}
}

Expand Down

0 comments on commit ab05e55

Please sign in to comment.