From e1f6554ed84f30880d69e7e811833f92337e949b Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Mon, 7 May 2012 16:35:11 +0000 Subject: add some more missing ifdef CLOOG_FOUND llvm-svn: 156306 --- polly/lib/CodeGen/Cloog.cpp | 3 +++ polly/lib/CodeGen/CodeGeneration.cpp | 7 +++++-- polly/lib/IndependentBlocks.cpp | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'polly') diff --git a/polly/lib/CodeGen/Cloog.cpp b/polly/lib/CodeGen/Cloog.cpp index f3fe68c52b0..e4cd24bcb06 100644 --- a/polly/lib/CodeGen/Cloog.cpp +++ b/polly/lib/CodeGen/Cloog.cpp @@ -23,6 +23,7 @@ //===----------------------------------------------------------------------===// #include "polly/Cloog.h" +#ifdef CLOOG_FOUND #include "polly/LinkAllPasses.h" #include "polly/ScopInfo.h" @@ -333,3 +334,5 @@ INITIALIZE_PASS_END(CloogInfo, "polly-cloog", Pass *polly::createCloogInfoPass() { return new CloogInfo(); } + +#endif // CLOOG_FOUND diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 72a6c828ad6..9d39ec2ff0a 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -20,9 +20,10 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "polly-codegen" - #include "polly/Cloog.h" +#ifdef CLOOG_FOUND + +#define DEBUG_TYPE "polly-codegen" #include "polly/Dependences.h" #include "polly/LinkAllPasses.h" #include "polly/ScopInfo.h" @@ -937,3 +938,5 @@ INITIALIZE_PASS_END(CodeGeneration, "polly-codegen", Pass *polly::createCodeGenerationPass() { return new CodeGeneration(); } + +#endif // CLOOG_FOUND diff --git a/polly/lib/IndependentBlocks.cpp b/polly/lib/IndependentBlocks.cpp index 7d806521561..6f1893c1813 100644 --- a/polly/lib/IndependentBlocks.cpp +++ b/polly/lib/IndependentBlocks.cpp @@ -491,7 +491,9 @@ void IndependentBlocks::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved(); AU.addRequired(); AU.addPreserved(); +#ifdef CLOOG_FOUND AU.addPreserved(); +#endif } bool IndependentBlocks::runOnFunction(llvm::Function &F) { -- cgit v1.2.3