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 | 3825e83d6bb83a3d243c4b79c224351d1063450f (patch) | |
tree | f6b0d0bdcbdc736f5ecec2324b7c92288dd947dc /clang/lib/CodeGen/ABIInfo.h | |
parent | d2f095e5bab4c2df2d94e1d0f4e7637f35a828f6 (diff) | |
download | bcm5719-llvm-3825e83d6bb83a3d243c4b79c224351d1063450f.tar.gz bcm5719-llvm-3825e83d6bb83a3d243c4b79c224351d1063450f.zip |
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.
llvm-svn: 192052
Diffstat (limited to 'clang/lib/CodeGen/ABIInfo.h')
-rw-r--r-- | clang/lib/CodeGen/ABIInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/ABIInfo.h b/clang/lib/CodeGen/ABIInfo.h index df6dc7216a4..1c004bc874c 100644 --- a/clang/lib/CodeGen/ABIInfo.h +++ b/clang/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; |