diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2012-09-14 10:18:51 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2012-09-14 10:18:51 +0000 |
| commit | 25fb23d6871424ae218991b84c5d87983a3eadb3 (patch) | |
| tree | e0a8c7f71f63297465e58561862f9e1c63139249 /llvm/lib | |
| parent | 93a21e7aaf9b6902ed31ff6d3c1e6b7978761344 (diff) | |
| download | bcm5719-llvm-25fb23d6871424ae218991b84c5d87983a3eadb3.tar.gz bcm5719-llvm-25fb23d6871424ae218991b84c5d87983a3eadb3.zip | |
Wrap the dumping and printing routines in NDEBUG and LLVM_ENABLE_DUMP macros.
llvm-svn: 163888
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SROA.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index 958f9b3705f..0534d9f922e 100644 --- a/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/llvm/lib/Transforms/Scalar/SROA.cpp @@ -287,12 +287,14 @@ public: /// memcpy are ignored. Type *getCommonType(iterator I) const; +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void print(raw_ostream &OS, const_iterator I, StringRef Indent = " ") const; void printUsers(raw_ostream &OS, const_iterator I, StringRef Indent = " ") const; void print(raw_ostream &OS) const; void LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED dump(const_iterator I) const; void LLVM_ATTRIBUTE_NOINLINE LLVM_ATTRIBUTE_USED dump() const; +#endif private: template <typename DerivedT, typename RetT = void> class BuilderBase; @@ -1054,6 +1056,8 @@ Type *AllocaPartitioning::getCommonType(iterator I) const { return Ty; } +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) + void AllocaPartitioning::print(raw_ostream &OS, const_iterator I, StringRef Indent) const { OS << Indent << "partition #" << (I - begin()) @@ -1102,6 +1106,8 @@ void AllocaPartitioning::print(raw_ostream &OS) const { void AllocaPartitioning::dump(const_iterator I) const { print(dbgs(), I); } void AllocaPartitioning::dump() const { print(dbgs()); } +#endif // !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) + namespace { /// \brief An optimization pass providing Scalar Replacement of Aggregates. |

