Skip to content

Commit

Permalink
Move the declaration of initializeSwiftARCContractPass and initialize…
Browse files Browse the repository at this point in the history
…SwiftARCOptPass from {LLVMARCContarct,LLVMARCOpts}.cpp => PassesFwd.h so swift-llvm-opts can use them.

Swift SVN r32807
  • Loading branch information
gottesmm committed Oct 21, 2015
1 parent 26337f2 commit 9ebc0d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions include/swift/LLVMPasses/PassesFwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ namespace llvm {

void initializeSwiftAAWrapperPassPass(PassRegistry &);
void initializeSwiftRCIdentityPass(PassRegistry &);
void initializeSwiftARCOptPass(PassRegistry &);
void initializeSwiftARCContractPass(PassRegistry &);
}

namespace swift {
Expand Down
4 changes: 0 additions & 4 deletions lib/LLVMPasses/LLVMARCContract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,6 @@ bool SwiftARCContract::runOnFunction(Function &F) {
return SwiftARCContractImpl(F, RC).run();
}

namespace llvm {
void initializeSwiftARCContractPass(PassRegistry&);
}

char SwiftARCContract::ID = 0;
INITIALIZE_PASS_BEGIN(SwiftARCContract,
"swift-arc-contract", "Swift ARC contraction",
Expand Down
4 changes: 0 additions & 4 deletions lib/LLVMPasses/LLVMARCOpts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,10 +967,6 @@ static bool performGeneralOptimizations(Function &F, ARCEntryPointBuilder &B,
// SwiftARCOpt Pass
//===----------------------------------------------------------------------===//

namespace llvm {
void initializeSwiftARCOptPass(PassRegistry&);
}

char SwiftARCOpt::ID = 0;

INITIALIZE_PASS_BEGIN(SwiftARCOpt,
Expand Down

0 comments on commit 9ebc0d2

Please sign in to comment.