r220896 - Remove some duplicate functions from the Parser class. Identical functions already exist in the clang namespace from Sema/Ownership.h.

Craig Topper craig.topper at gmail.com
Wed Oct 29 22:17:10 PDT 2014


Author: ctopper
Date: Thu Oct 30 00:17:10 2014
New Revision: 220896

URL: http://llvm.org/viewvc/llvm-project?rev=220896&view=rev
Log:
Remove some duplicate functions from the Parser class. Identical functions already exist in the clang namespace from Sema/Ownership.h.

Modified:
    cfe/trunk/include/clang/Parse/Parser.h

Modified: cfe/trunk/include/clang/Parse/Parser.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Parser.h?rev=220896&r1=220895&r2=220896&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/Parser.h (original)
+++ cfe/trunk/include/clang/Parse/Parser.h Thu Oct 30 00:17:10 2014
@@ -268,14 +268,6 @@ public:
   typedef MutableArrayRef<Stmt*> MultiStmtArg;
   typedef Sema::FullExprArg FullExprArg;
 
-  ExprResult ExprError() { return ExprResult(true); }
-  StmtResult StmtError() { return StmtResult(true); }
-
-  ExprResult ExprError(const DiagnosticBuilder &) { return ExprError(); }
-  StmtResult StmtError(const DiagnosticBuilder &) { return StmtError(); }
-
-  ExprResult ExprEmpty() { return ExprResult(false); }
-
   // Parsing methods.
 
   /// Initialize - Warm up the parser.





More information about the cfe-commits mailing list