diff options
Diffstat (limited to 'clang/Driver/PrintParserCallbacks.cpp')
-rw-r--r-- | clang/Driver/PrintParserCallbacks.cpp | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/clang/Driver/PrintParserCallbacks.cpp b/clang/Driver/PrintParserCallbacks.cpp index c5d754e73d8..7999da01d91 100644 --- a/clang/Driver/PrintParserCallbacks.cpp +++ b/clang/Driver/PrintParserCallbacks.cpp @@ -284,29 +284,32 @@ namespace { llvm::cout << __FUNCTION__ << "\n"; return StmtEmpty(); } - - virtual StmtResult ActOnLabelStmt(SourceLocation IdentLoc, IdentifierInfo *II, - SourceLocation ColonLoc, StmtTy *SubStmt) { + + virtual OwningStmtResult ActOnLabelStmt(SourceLocation IdentLoc, + IdentifierInfo *II, + SourceLocation ColonLoc, + StmtArg SubStmt) { llvm::cout << __FUNCTION__ << "\n"; - return 0; + return StmtEmpty(); } - - virtual StmtResult ActOnIfStmt(SourceLocation IfLoc, ExprTy *CondVal, - StmtTy *ThenVal, SourceLocation ElseLoc, - StmtTy *ElseVal) { + + virtual OwningStmtResult ActOnIfStmt(SourceLocation IfLoc, ExprArg CondVal, + StmtArg ThenVal,SourceLocation ElseLoc, + StmtArg ElseVal) { llvm::cout << __FUNCTION__ << "\n"; - return 0; + return StmtEmpty(); } - - virtual StmtResult ActOnStartOfSwitchStmt(ExprTy *Cond) { + + virtual OwningStmtResult ActOnStartOfSwitchStmt(ExprArg Cond) { llvm::cout << __FUNCTION__ << "\n"; - return 0; + return StmtEmpty(); } - - virtual StmtResult ActOnFinishSwitchStmt(SourceLocation SwitchLoc, - StmtTy *Switch, ExprTy *Body) { + + virtual OwningStmtResult ActOnFinishSwitchStmt(SourceLocation SwitchLoc, + StmtArg Switch, + StmtArg Body) { llvm::cout << __FUNCTION__ << "\n"; - return 0; + return StmtEmpty(); } virtual StmtResult ActOnWhileStmt(SourceLocation WhileLoc, ExprTy *Cond, |