From 66a636e07c90c7270b673406f2bac1bfea81ea8b Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 13 May 2008 02:05:11 +0000 Subject: Change class' public PassInfo variables to by initialized with the address of the PassInfo directly instead of calling getPassInfo. This eliminates a bunch of dynamic initializations of static data. Also, fold RegisterPassBase into PassInfo, make a bunch of its data members const, and rearrange some code to initialize data members in constructors instead of using setter member functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51022 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TwoAddressInstructionPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp') diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index f343ff40d8..1e24914f3f 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -81,7 +81,7 @@ char TwoAddressInstructionPass::ID = 0; static RegisterPass X("twoaddressinstruction", "Two-Address instruction pass"); -const PassInfo *llvm::TwoAddressInstructionPassID = X.getPassInfo(); +const PassInfo *const llvm::TwoAddressInstructionPassID = &X; /// Sink3AddrInstruction - A two-address instruction has been converted to a /// three-address instruction to avoid clobbering a register. Try to sink it -- cgit v1.2.3