diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-12-20 18:44:39 +0100 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-20 18:45:14 +0100 |
| commit | 6be76f491fcbb2a8476e58cb8d3310155c71e74a (patch) | |
| tree | 755321a01e23f20b4934bc443f7a889c81e5e3a3 /lldb/include | |
| parent | 2f209ccfbe5e6b33088763b1e022ba876fb0f35c (diff) | |
| download | bcm5719-llvm-6be76f491fcbb2a8476e58cb8d3310155c71e74a.tar.gz bcm5719-llvm-6be76f491fcbb2a8476e58cb8d3310155c71e74a.zip | |
[lldb][NFC] Remove redundant ASTContext args to CopyDecl/DeportDecl
We already pass a Decl here and the additional ASTContext needs to
match the Decl. We might as well just pass the Decl and then extract
the ASTContext from that.
Diffstat (limited to 'lldb/include')
| -rw-r--r-- | lldb/include/lldb/Symbol/ClangASTImporter.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/include/lldb/Symbol/ClangASTImporter.h b/lldb/include/lldb/Symbol/ClangASTImporter.h index 9c0a95beb1e..faec3a77b56 100644 --- a/lldb/include/lldb/Symbol/ClangASTImporter.h +++ b/lldb/include/lldb/Symbol/ClangASTImporter.h @@ -50,13 +50,11 @@ public: CompilerType CopyType(ClangASTContext &dst, const CompilerType &src_type); - clang::Decl *CopyDecl(clang::ASTContext *dst_ctx, clang::ASTContext *src_ctx, - clang::Decl *decl); + clang::Decl *CopyDecl(clang::ASTContext *dst_ctx, clang::Decl *decl); CompilerType DeportType(ClangASTContext &dst, const CompilerType &src_type); - clang::Decl *DeportDecl(clang::ASTContext *dst_ctx, - clang::ASTContext *src_ctx, clang::Decl *decl); + clang::Decl *DeportDecl(clang::ASTContext *dst_ctx, clang::Decl *decl); /// Sets the layout for the given RecordDecl. The layout will later be /// used by Clang's during code generation. Not calling this function for |

