From 8b7f01c6a10c5c8bebb82f214bcf3bc6c82b2607 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Mon, 7 May 2012 21:27:11 +0000 Subject: [PATCH] make registerPollyPreoptPasses static llvm-svn: 156326 --- polly/include/polly/RegisterPasses.h | 8 -------- polly/lib/RegisterPasses.cpp | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/polly/include/polly/RegisterPasses.h b/polly/include/polly/RegisterPasses.h index 10ff09a2205a..680fc2a4b30d 100644 --- a/polly/include/polly/RegisterPasses.h +++ b/polly/include/polly/RegisterPasses.h @@ -16,12 +16,4 @@ namespace llvm { class PassManagerBase; } - -namespace polly { -// Register the Polly preoptimization passes. Preoptimizations are used to -// prepare the LLVM-IR for Polly. They increase the amount of code that can be -// optimized. -// (These passes are automatically included in registerPollyPasses). -void registerPollyPreoptPasses(llvm::PassManagerBase &PM); -} #endif diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp index faee827d6eb4..b83e9af6ca08 100644 --- a/polly/lib/RegisterPasses.cpp +++ b/polly/lib/RegisterPasses.cpp @@ -159,7 +159,7 @@ public: static StaticInitializer InitializeEverything; -void polly::registerPollyPreoptPasses(llvm::PassManagerBase &PM) { +static void registerPollyPreoptPasses(llvm::PassManagerBase &PM) { // A standard set of optimization passes partially taken/copied from the // set of default optimization passes. It is used to bring the code into // a canonical form that can than be analyzed by Polly. This set of passes is