summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorMark Lacey <mark.lacey@apple.com>2013-10-02 20:35:23 +0000
committerMark Lacey <mark.lacey@apple.com>2013-10-02 20:35:23 +0000
commit5ea993bb590bc3c967c6470308310bb55ca76f70 (patch)
tree7ca2fe5ad0de139721ec87e1d6bafa629a450cfe /clang/lib/CodeGen/CGCall.cpp
parente64c7c75309d5d7520bf5dacf388028c6f1b7308 (diff)
downloadbcm5719-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.cpp3
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());
}
OpenPOWER on IntegriCloud