diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-05-07 16:35:11 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-05-07 16:35:11 +0000 |
commit | e1f6554ed84f30880d69e7e811833f92337e949b (patch) | |
tree | 82f4f6746eb9580d6e308ab06a37899f8667cf7a /polly | |
parent | 082cea86165e30bfc71e02ea8eefb52444743a05 (diff) | |
download | bcm5719-llvm-e1f6554ed84f30880d69e7e811833f92337e949b.tar.gz bcm5719-llvm-e1f6554ed84f30880d69e7e811833f92337e949b.zip |
add some more missing ifdef CLOOG_FOUND
llvm-svn: 156306
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/CodeGen/Cloog.cpp | 3 | ||||
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 7 | ||||
-rw-r--r-- | polly/lib/IndependentBlocks.cpp | 2 |
3 files changed, 10 insertions, 2 deletions
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<ScalarEvolution>(); AU.addRequired<ScopDetection>(); AU.addPreserved<ScopDetection>(); +#ifdef CLOOG_FOUND AU.addPreserved<CloogInfo>(); +#endif } bool IndependentBlocks::runOnFunction(llvm::Function &F) { |