From d1ad72f54f4abf62a5f0b2c297edf5e4b1ab1024 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 11 Aug 2009 15:50:56 +0000 Subject: [PATCH] Add a comment about the additional meaning of setPreservesCFG() for MachineFunctionPass passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78669 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFunctionPass.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/CodeGen/MachineFunctionPass.h b/include/llvm/CodeGen/MachineFunctionPass.h index 6f7c216382a..60460afae7a 100644 --- a/include/llvm/CodeGen/MachineFunctionPass.h +++ b/include/llvm/CodeGen/MachineFunctionPass.h @@ -40,6 +40,10 @@ protected: /// getAnalysisUsage - Subclasses that override getAnalysisUsage /// must call this. + /// + /// For MachineFunctionPasses, calling AU.preservesCFG() indicates that + /// the pass does not modify the MachineBasicBlock CFG. + /// virtual void getAnalysisUsage(AnalysisUsage &AU) const; private: -- 2.34.1