diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-02-11 01:04:33 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-02-11 01:04:33 +0000 |
| commit | 0a5a2216e2d52482d0c59220d4b85f828aeaae70 (patch) | |
| tree | d513bdedd4be5debae8f27fd479e19d595ebfdef /clang/lib/AST/ASTContext.cpp | |
| parent | da4abf11bf3dbc7c9fb921cb2f67cac9022e6021 (diff) | |
| download | bcm5719-llvm-0a5a2216e2d52482d0c59220d4b85f828aeaae70.tar.gz bcm5719-llvm-0a5a2216e2d52482d0c59220d4b85f828aeaae70.zip | |
Eliminate the ASTContext parameter from RecordDecl::getDefinition()
and CXXRecordDecl::getDefinition(); it's totally unnecessary. No
functionality change.
llvm-svn: 95836
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 7912a93421f..982ca7faa17 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1097,7 +1097,7 @@ ASTContext::getASTObjCImplementationLayout(const ObjCImplementationDecl *D) { /// specified record (struct/union/class), which indicates its size and field /// position information. const ASTRecordLayout &ASTContext::getASTRecordLayout(const RecordDecl *D) { - D = D->getDefinition(*this); + D = D->getDefinition(); assert(D && "Cannot get layout of forward declarations!"); // Look up this layout, if already laid out, return what we have. @@ -1114,7 +1114,7 @@ const ASTRecordLayout &ASTContext::getASTRecordLayout(const RecordDecl *D) { } const CXXMethodDecl *ASTContext::getKeyFunction(const CXXRecordDecl *RD) { - RD = cast<CXXRecordDecl>(RD->getDefinition(*this)); + RD = cast<CXXRecordDecl>(RD->getDefinition()); assert(RD && "Cannot get key function for forward declarations!"); const CXXMethodDecl *&Entry = KeyFunctions[RD]; |

