Author: hiraditya Date: Thu May 31 07:45:32 2018 New Revision: 333657 URL: http://llvm.org/viewvc/llvm-project?rev=333657&view=rev Log: Add dump method for selectors
Differential Revision: https://reviews.llvm.org/D45935 Reviewers: compnerd Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h cfe/trunk/lib/Basic/IdentifierTable.cpp Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/IdentifierTable.h?rev=333657&r1=333656&r2=333657&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/IdentifierTable.h (original) +++ cfe/trunk/include/clang/Basic/IdentifierTable.h Thu May 31 07:45:32 2018 @@ -763,6 +763,8 @@ public: /// Prints the full selector name (e.g. "foo:bar:"). void print(llvm::raw_ostream &OS) const; + void dump() const; + /// Derive the conventional family of this method. ObjCMethodFamily getMethodFamily() const { return getMethodFamilyImpl(*this); Modified: cfe/trunk/lib/Basic/IdentifierTable.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/IdentifierTable.cpp?rev=333657&r1=333656&r2=333657&view=diff ============================================================================== --- cfe/trunk/lib/Basic/IdentifierTable.cpp (original) +++ cfe/trunk/lib/Basic/IdentifierTable.cpp Thu May 31 07:45:32 2018 @@ -504,6 +504,8 @@ void Selector::print(llvm::raw_ostream & OS << getAsString(); } +LLVM_DUMP_METHOD void Selector::dump() const { print(llvm::errs()); } + /// Interpreting the given string using the normal CamelCase /// conventions, determine whether the given string starts with the /// given "word", which is assumed to end in a lowercase letter. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits