diff options
author | Mark Lacey <mark.lacey@apple.com> | 2013-10-02 20:35:23 +0000 |
---|---|---|
committer | Mark Lacey <mark.lacey@apple.com> | 2013-10-02 20:35:23 +0000 |
commit | 5ea993bb590bc3c967c6470308310bb55ca76f70 (patch) | |
tree | 7ca2fe5ad0de139721ec87e1d6bafa629a450cfe | |
parent | e64c7c75309d5d7520bf5dacf388028c6f1b7308 (diff) | |
download | bcm5719-llvm-5ea993bb590bc3c967c6470308310bb55ca76f70.tar.gz bcm5719-llvm-5ea993bb590bc3c967c6470308310bb55ca76f70.zip |
Use the CGCXXABI member on CodeGenTypes.
CodeGenTypes already has a reference to a CGCXXABI. Use this directly
rather than going through CodeGenModule to get to the same information.
This is consistent with other references to CGCXXABI in CodeGenTypes
functions defined in CGCall.cpp.
llvm-svn: 191854
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 3 | ||||
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 84dd7bfe97e..fa2522264ac 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -182,8 +182,7 @@ CodeGenTypes::arrangeCXXMethodDeclaration(const CXXMethodDecl *MD) { if (MD->isInstance()) { // The abstract case is perfectly fine. - const CXXRecordDecl *ThisType = - CGM.getCXXABI().getThisArgumentTypeForMethod(MD); + const CXXRecordDecl *ThisType = TheCXXABI.getThisArgumentTypeForMethod(MD); return arrangeCXXMethodType(ThisType, prototype.getTypePtr()); } diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 01efd119c74..27e8e2a0f04 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -48,7 +48,7 @@ static bool isRecordReturnIndirect(const RecordType *RT, CodeGen::CodeGenTypes & const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()); if (!RD) return false; - return CGT.CGM.getCXXABI().isReturnTypeIndirect(RD); + return CGT.getCXXABI().isReturnTypeIndirect(RD); } @@ -64,7 +64,7 @@ static CGCXXABI::RecordArgABI getRecordArgABI(const RecordType *RT, const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()); if (!RD) return CGCXXABI::RAA_Default; - return CGT.CGM.getCXXABI().getRecordArgABI(RD); + return CGT.getCXXABI().getRecordArgABI(RD); } static CGCXXABI::RecordArgABI getRecordArgABI(QualType T, |