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 /clang/lib/CodeGen/CGCall.cpp | |
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
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 1 insertions, 2 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()); } |