This revision was automatically updated to reflect the committed changes. Closed by commit rL333657: Add dump method for selectors (authored by hiraditya, committed by ).
Changed prior to commit: https://reviews.llvm.org/D45935?vs=143493&id=149294#toc Repository: rL LLVM https://reviews.llvm.org/D45935 Files: cfe/trunk/include/clang/Basic/IdentifierTable.h cfe/trunk/lib/Basic/IdentifierTable.cpp Index: cfe/trunk/include/clang/Basic/IdentifierTable.h =================================================================== --- cfe/trunk/include/clang/Basic/IdentifierTable.h +++ cfe/trunk/include/clang/Basic/IdentifierTable.h @@ -763,6 +763,8 @@ /// 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); Index: cfe/trunk/lib/Basic/IdentifierTable.cpp =================================================================== --- cfe/trunk/lib/Basic/IdentifierTable.cpp +++ cfe/trunk/lib/Basic/IdentifierTable.cpp @@ -504,6 +504,8 @@ 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.
Index: cfe/trunk/include/clang/Basic/IdentifierTable.h =================================================================== --- cfe/trunk/include/clang/Basic/IdentifierTable.h +++ cfe/trunk/include/clang/Basic/IdentifierTable.h @@ -763,6 +763,8 @@ /// 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); Index: cfe/trunk/lib/Basic/IdentifierTable.cpp =================================================================== --- cfe/trunk/lib/Basic/IdentifierTable.cpp +++ cfe/trunk/lib/Basic/IdentifierTable.cpp @@ -504,6 +504,8 @@ 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