Author: jroelofs Date: Fri May 5 16:30:13 2017 New Revision: 302296 URL: http://llvm.org/viewvc/llvm-project?rev=302296&view=rev Log: Multilib: add dump methods
Modified: cfe/trunk/include/clang/Driver/Multilib.h cfe/trunk/lib/Driver/Multilib.cpp Modified: cfe/trunk/include/clang/Driver/Multilib.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Multilib.h?rev=302296&r1=302295&r2=302296&view=diff ============================================================================== --- cfe/trunk/include/clang/Driver/Multilib.h (original) +++ cfe/trunk/include/clang/Driver/Multilib.h Fri May 5 16:30:13 2017 @@ -84,6 +84,7 @@ public: return *this; } + LLVM_DUMP_METHOD void dump() const; /// \brief print summary of the Multilib void print(raw_ostream &OS) const; @@ -157,6 +158,7 @@ public: unsigned size() const { return Multilibs.size(); } + LLVM_DUMP_METHOD void dump() const; void print(raw_ostream &OS) const; MultilibSet &setIncludeDirsCallback(IncludeDirsFunc F) { Modified: cfe/trunk/lib/Driver/Multilib.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Multilib.cpp?rev=302296&r1=302295&r2=302296&view=diff ============================================================================== --- cfe/trunk/lib/Driver/Multilib.cpp (original) +++ cfe/trunk/lib/Driver/Multilib.cpp Fri May 5 16:30:13 2017 @@ -80,6 +80,10 @@ Multilib &Multilib::includeSuffix(String return *this; } +LLVM_DUMP_METHOD void Multilib::dump() const { + print(llvm::errs()); +} + void Multilib::print(raw_ostream &OS) const { assert(GCCSuffix.empty() || (StringRef(GCCSuffix).front() == '/')); if (GCCSuffix.empty()) @@ -270,6 +274,10 @@ bool MultilibSet::select(const Multilib: return false; } +LLVM_DUMP_METHOD void MultilibSet::dump() const { + print(llvm::errs()); +} + void MultilibSet::print(raw_ostream &OS) const { for (const Multilib &M : *this) OS << M << "\n"; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits