Add missed cleanup from r198456
authorAlp Toker <alp@nuanti.com>
Sat, 4 Jan 2014 22:47:48 +0000 (22:47 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 4 Jan 2014 22:47:48 +0000 (22:47 +0000)
All other uses of this macro in LLVM/clang have been moved to the function
definition so follow suite (and the usage advice) here too for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SROA.cpp

index dc5dbbb84bbd78b053675992cf004ece55b2ae2f..dcd8e5d15682d436d6fa84d7117c5c7ca7265b9e 100644 (file)
@@ -244,8 +244,8 @@ public:
   void printUse(raw_ostream &OS, const_iterator I,
                 StringRef Indent = "  ") const;
   void print(raw_ostream &OS) const;
-  LLVM_DUMP_METHOD void dump(const_iterator I) const;
-  LLVM_DUMP_METHOD void dump() const;
+  void dump(const_iterator I) const;
+  void dump() const;
 #endif
 
 private:
@@ -712,8 +712,10 @@ void AllocaSlices::print(raw_ostream &OS) const {
     print(OS, I);
 }
 
-void AllocaSlices::dump(const_iterator I) const { print(dbgs(), I); }
-void AllocaSlices::dump() const { print(dbgs()); }
+LLVM_DUMP_METHOD void AllocaSlices::dump(const_iterator I) const {
+  print(dbgs(), I);
+}
+LLVM_DUMP_METHOD void AllocaSlices::dump() const { print(dbgs()); }
 
 #endif // !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)