[PATCH] D45935: Add dump method for selectors
Aditya Kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 31 07:51:14 PDT 2018
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45935.149294.patch
Type: text/x-patch
Size: 1035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180531/fd3e558c/attachment.bin>
More information about the cfe-commits
mailing list