mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
[SCCP] Prefer class to struct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270074 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c105a37f5e
commit
88f5077adc
@ -27,7 +27,8 @@
|
||||
namespace llvm {
|
||||
|
||||
/// This pass performs function-level constant propagation and merging.
|
||||
struct SCCPPass : PassInfoMixin<SCCPPass> {
|
||||
class SCCPPass : public PassInfoMixin<SCCPPass> {
|
||||
public:
|
||||
PreservedAnalyses run(Function &F, AnalysisManager<Function> &AM);
|
||||
};
|
||||
}
|
||||
|
@ -1638,7 +1638,8 @@ namespace {
|
||||
/// SCCP Class - This class uses the SCCPSolver to implement a per-function
|
||||
/// Sparse Conditional Constant Propagator.
|
||||
///
|
||||
struct SCCPLegacyPass : public FunctionPass {
|
||||
class SCCPLegacyPass : public FunctionPass {
|
||||
public:
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.addRequired<TargetLibraryInfoWrapperPass>();
|
||||
AU.addPreserved<GlobalsAAWrapperPass>();
|
||||
@ -1960,7 +1961,8 @@ namespace {
|
||||
/// IPSCCP Class - This class implements interprocedural Sparse Conditional
|
||||
/// Constant Propagation.
|
||||
///
|
||||
struct IPSCCPLegacyPass : public ModulePass {
|
||||
class IPSCCPLegacyPass : public ModulePass {
|
||||
public:
|
||||
static char ID;
|
||||
|
||||
IPSCCPLegacyPass() : ModulePass(ID) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user