diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-28 16:13:43 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-28 16:13:43 +0000 |
commit | 1cbb59182cb886eb3a23ee09e33821f064a0c24e (patch) | |
tree | 8b9bc1109bcf308ffc019d1f61a935730a158534 /clang/Driver | |
parent | 4f84ddccc8a39a6df96ad13b6ffda7b9a96d79a8 (diff) | |
download | bcm5719-llvm-1cbb59182cb886eb3a23ee09e33821f064a0c24e.tar.gz bcm5719-llvm-1cbb59182cb886eb3a23ee09e33821f064a0c24e.zip |
Convert a two more statement actions to smart pointers.
llvm-svn: 61456
Diffstat (limited to 'clang/Driver')
-rw-r--r-- | clang/Driver/PrintParserCallbacks.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/clang/Driver/PrintParserCallbacks.cpp b/clang/Driver/PrintParserCallbacks.cpp index 291ee393c18..c5d754e73d8 100644 --- a/clang/Driver/PrintParserCallbacks.cpp +++ b/clang/Driver/PrintParserCallbacks.cpp @@ -269,17 +269,20 @@ namespace { /// ActOnCaseStmt - Note that this handles the GNU 'case 1 ... 4' extension, /// which can specify an RHS value. - virtual StmtResult ActOnCaseStmt(SourceLocation CaseLoc, ExprTy *LHSVal, - SourceLocation DotDotDotLoc, ExprTy *RHSVal, - SourceLocation ColonLoc, StmtTy *SubStmt) { + virtual OwningStmtResult ActOnCaseStmt(SourceLocation CaseLoc, + ExprArg LHSVal, + SourceLocation DotDotDotLoc, + ExprArg RHSVal, + SourceLocation ColonLoc, + StmtArg SubStmt) { llvm::cout << __FUNCTION__ << "\n"; - return 0; + return StmtEmpty(); } - virtual StmtResult ActOnDefaultStmt(SourceLocation DefaultLoc, - SourceLocation ColonLoc, StmtTy *SubStmt, - Scope *CurScope){ + virtual OwningStmtResult ActOnDefaultStmt(SourceLocation DefaultLoc, + SourceLocation ColonLoc, + StmtArg SubStmt, Scope *CurScope){ llvm::cout << __FUNCTION__ << "\n"; - return 0; + return StmtEmpty(); } virtual StmtResult ActOnLabelStmt(SourceLocation IdentLoc, IdentifierInfo *II, |