Skip to content

Commit

Permalink
MachineFunctionPrinterPass: Declare SlotIndexes as used if available;…
Browse files Browse the repository at this point in the history
… NFC

This makes print-machineinstrs print the slot indexes in more
situations. NFC for normal compilation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344004 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
MatzeB committed Oct 8, 2018
1 parent 78fee6e commit fabae5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/CodeGen/MachineFunctionPrinterPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct MachineFunctionPrinterPass : public MachineFunctionPass {

void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.setPreservesAll();
AU.addUsedIfAvailable<SlotIndexes>();
MachineFunctionPass::getAnalysisUsage(AU);
}

Expand Down

0 comments on commit fabae5e

Please sign in to comment.