mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-01 10:02:42 +00:00
Clean up a funky pass registration that got passed over when I got rid of static constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6018deefe8
commit
fa3306af82
@ -17,18 +17,12 @@
|
||||
#include "llvm/CodeGen/MachineModuleInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
// Register this pass with PassInfo directly to avoid having to define
|
||||
// a default constructor.
|
||||
static PassInfo
|
||||
X("Machine Function Analysis", "machine-function-analysis",
|
||||
&MachineFunctionAnalysis::ID, 0,
|
||||
/*CFGOnly=*/false, /*is_analysis=*/true);
|
||||
|
||||
char MachineFunctionAnalysis::ID = 0;
|
||||
|
||||
MachineFunctionAnalysis::MachineFunctionAnalysis(const TargetMachine &tm,
|
||||
CodeGenOpt::Level OL) :
|
||||
FunctionPass(ID), TM(tm), OptLevel(OL), MF(0) {
|
||||
initializeMachineModuleInfoPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
MachineFunctionAnalysis::~MachineFunctionAnalysis() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user