diff options
author | Mark Lacey <mark.lacey@apple.com> | 2013-10-06 01:33:34 +0000 |
---|---|---|
committer | Mark Lacey <mark.lacey@apple.com> | 2013-10-06 01:33:34 +0000 |
commit | 2363072da26da25009bf61c3d9d056a028d4d720 (patch) | |
tree | d4968030214c967140c09f77e07090c99c34602c /lib/CodeGen/ABIInfo.h | |
parent | 9025a18c3601b37765ccdfdf76a151c213b8c0b3 (diff) |
Pass CGCXXABIs around directly.
In functions that only need to use the CGCXXABI member of a CodeGenTypes
class, pass that reference around directly rather than a reference to
a CodeGenTypes class.
This makes the actual dependence on CGCXXABI clear at the call sites.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ABIInfo.h')
-rw-r--r-- | lib/CodeGen/ABIInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/ABIInfo.h b/lib/CodeGen/ABIInfo.h index df6dc7216a..1c004bc874 100644 --- a/lib/CodeGen/ABIInfo.h +++ b/lib/CodeGen/ABIInfo.h @@ -25,6 +25,7 @@ namespace clang { class TargetInfo; namespace CodeGen { + class CGCXXABI; class CGFunctionInfo; class CodeGenFunction; class CodeGenTypes; @@ -194,6 +195,7 @@ namespace clang { virtual ~ABIInfo(); + CodeGen::CGCXXABI &getCXXABI() const; ASTContext &getContext() const; llvm::LLVMContext &getVMContext() const; const llvm::DataLayout &getDataLayout() const; |