r363935 - Removing a helper function that was trivial to inline into its only use; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 20 08:10:45 PDT 2019
Author: aaronballman
Date: Thu Jun 20 08:10:45 2019
New Revision: 363935
URL: http://llvm.org/viewvc/llvm-project?rev=363935&view=rev
Log:
Removing a helper function that was trivial to inline into its only use; NFC.
Modified:
cfe/trunk/include/clang/AST/TextNodeDumper.h
cfe/trunk/lib/AST/TextNodeDumper.cpp
Modified: cfe/trunk/include/clang/AST/TextNodeDumper.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TextNodeDumper.h?rev=363935&r1=363934&r2=363935&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TextNodeDumper.h (original)
+++ cfe/trunk/include/clang/AST/TextNodeDumper.h Thu Jun 20 08:10:45 2019
@@ -347,9 +347,6 @@ public:
void VisitObjCPropertyDecl(const ObjCPropertyDecl *D);
void VisitObjCPropertyImplDecl(const ObjCPropertyImplDecl *D);
void VisitBlockDecl(const BlockDecl *D);
-
-private:
- void dumpCXXTemporary(const CXXTemporary *Temporary);
};
} // namespace clang
Modified: cfe/trunk/lib/AST/TextNodeDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TextNodeDumper.cpp?rev=363935&r1=363934&r2=363935&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TextNodeDumper.cpp (original)
+++ cfe/trunk/lib/AST/TextNodeDumper.cpp Thu Jun 20 08:10:45 2019
@@ -448,12 +448,6 @@ void TextNodeDumper::dumpAccessSpecifier
}
}
-void TextNodeDumper::dumpCXXTemporary(const CXXTemporary *Temporary) {
- OS << "(CXXTemporary";
- dumpPointer(Temporary);
- OS << ")";
-}
-
void TextNodeDumper::dumpDeclRef(const Decl *D, StringRef Label) {
if (!D)
return;
@@ -914,8 +908,9 @@ void TextNodeDumper::VisitCXXConstructEx
void TextNodeDumper::VisitCXXBindTemporaryExpr(
const CXXBindTemporaryExpr *Node) {
- OS << " ";
- dumpCXXTemporary(Node->getTemporary());
+ OS << " (CXXTemporary";
+ dumpPointer(Node);
+ OS << ")";
}
void TextNodeDumper::VisitCXXNewExpr(const CXXNewExpr *Node) {
More information about the cfe-commits
mailing list