diff options
| author | Hongbin Zheng <etherzhhb@gmail.com> | 2012-04-23 13:03:43 +0000 |
|---|---|---|
| committer | Hongbin Zheng <etherzhhb@gmail.com> | 2012-04-23 13:03:43 +0000 |
| commit | 6f7aa074add43a00e6a2520efacbc14c05d7bd45 (patch) | |
| tree | 40f9e9f8f3f0ec0fc8b1f24c2d123d830b1a5f86 | |
| parent | 056e27ea495f93ec8379e620d09ce390a31d2224 (diff) | |
| download | bcm5719-llvm-6f7aa074add43a00e6a2520efacbc14c05d7bd45.tar.gz bcm5719-llvm-6f7aa074add43a00e6a2520efacbc14c05d7bd45.zip | |
1. Add a header guard for LoopGenerators.h to prevent multiple inclusion.
2. Include the helper function and the helper class in the LoopGenerator.h into the polly namespace.
llvm-svn: 155348
| -rw-r--r-- | polly/include/polly/LoopGenerators.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/include/polly/LoopGenerators.h b/polly/include/polly/LoopGenerators.h index d55d55cf357..b37c55298f3 100644 --- a/polly/include/polly/LoopGenerators.h +++ b/polly/include/polly/LoopGenerators.h @@ -11,6 +11,8 @@ // as LLVM-IR. // //===----------------------------------------------------------------------===// +#ifndef POLLY_LOOP_GENERATORS_H +#define POLLY_LOOP_GENERATORS_H #include "llvm/Support/IRBuilder.h" #include "llvm/ADT/SetVector.h" @@ -22,6 +24,7 @@ namespace llvm { class BasicBlock; } +namespace polly { using namespace llvm; /// @brief Create a scalar loop. @@ -105,4 +108,6 @@ private: /// @brief Create the definition of the OpenMP subfunction. Function *createSubfunctionDefinition(); }; +} // end namespace polly +#endif |

