diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-13 16:23:55 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-13 16:23:55 +0000 |
commit | 798d119415323ebcd029ffe1e0fb442a4ca8adbb (patch) | |
tree | a1b5716617936cdada1e20cc771a8edbbfdf063a /Driver/PrintParserCallbacks.cpp | |
parent | 1d922960e083906a586609ac6978678147250177 (diff) |
Some utilities for using the smart pointers in Actions, especially Sema. Convert a few functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintParserCallbacks.cpp')
-rw-r--r-- | Driver/PrintParserCallbacks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Driver/PrintParserCallbacks.cpp b/Driver/PrintParserCallbacks.cpp index 8ec45f2703..6546b08816 100644 --- a/Driver/PrintParserCallbacks.cpp +++ b/Driver/PrintParserCallbacks.cpp @@ -108,7 +108,7 @@ namespace { /// This allows ActOnDeclarator to register "xx" prior to parsing the /// initializer. The declaration above should still result in a warning, /// since the reference to "xx" is uninitialized. - virtual void AddInitializerToDecl(DeclTy *Dcl, ExprTy *Init) { + virtual void AddInitializerToDecl(DeclTy *Dcl, ExprArg Init) { llvm::cout << __FUNCTION__ << "\n"; } @@ -140,12 +140,12 @@ namespace { /// ActOnFunctionDefBody - This is called when a function body has completed /// parsing. Decl is the DeclTy returned by ParseStartOfFunctionDef. - virtual DeclTy *ActOnFinishFunctionBody(DeclTy *Decl, StmtTy *Body) { + virtual DeclTy *ActOnFinishFunctionBody(DeclTy *Decl, StmtArg Body) { llvm::cout << __FUNCTION__ << "\n"; return 0; } - virtual DeclTy *ActOnFileScopeAsmDecl(SourceLocation Loc, ExprTy *AsmString) { + virtual DeclTy *ActOnFileScopeAsmDecl(SourceLocation Loc, ExprArg AsmString) { llvm::cout << __FUNCTION__ << "\n"; return 0; } |