mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
- Rename AnalysisUsage::preservesAll to getPreservesAll & preservesCFG to
setPreservesCFG to be less confusing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -61,17 +61,18 @@ public:
|
||||
|
||||
// setPreservesAll - Set by analyses that do not transform their input at all
|
||||
void setPreservesAll() { PreservesAll = true; }
|
||||
bool preservesAll() const { return PreservesAll; }
|
||||
bool getPreservesAll() const { return PreservesAll; }
|
||||
|
||||
// preservesCFG - This function should be called by the pass, iff they do not:
|
||||
//
|
||||
// 1. Add or remove basic blocks from the function
|
||||
// 2. Modify terminator instructions in any way.
|
||||
//
|
||||
// This function annotates the AnalysisUsage info object to say that analyses
|
||||
// that only depend on the CFG are preserved by this pass.
|
||||
//
|
||||
void preservesCFG();
|
||||
/// setPreservesCFG - This function should be called by the pass, iff they do
|
||||
/// not:
|
||||
///
|
||||
/// 1. Add or remove basic blocks from the function
|
||||
/// 2. Modify terminator instructions in any way.
|
||||
///
|
||||
/// This function annotates the AnalysisUsage info object to say that analyses
|
||||
/// that only depend on the CFG are preserved by this pass.
|
||||
///
|
||||
void setPreservesCFG();
|
||||
|
||||
const std::vector<AnalysisID> &getRequiredSet() const { return Required; }
|
||||
const std::vector<AnalysisID> &getPreservedSet() const { return Preserved; }
|
||||
|
||||
Reference in New Issue
Block a user