diff options
author | Matthias Braun <matze@braunis.de> | 2018-10-08 23:47:34 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-10-08 23:47:34 +0000 |
commit | 8ae1bee13043781f56a9f22363185289b4b63491 (patch) | |
tree | 2ab4cb834ad7aa7341b78b9ab51c3835a1d3162b | |
parent | 445fccc3d4649eafb3f47bb4c81505dc3b653ff0 (diff) |
MachineFunctionPrinterPass: Declare SlotIndexes as used if available; NFC
This makes print-machineinstrs print the slot indexes in more
situations. NFC for normal compilation.
-rw-r--r-- | llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp index 9c3288e02db..9c96ba74877 100644 --- a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp +++ b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp @@ -39,6 +39,7 @@ struct MachineFunctionPrinterPass : public MachineFunctionPass { void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); + AU.addUsedIfAvailable<SlotIndexes>(); MachineFunctionPass::getAnalysisUsage(AU); } |