summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ABIInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-29 01:08:48 +0000
committerChris Lattner <sabre@nondot.org>2010-06-29 01:08:48 +0000
commit1d7c9f7f4b5f0d11d54ddd6abc3a49bab916b7b9 (patch)
treedefe1e1e72beba5aac5054ce9381c3ddcac560da /clang/lib/CodeGen/ABIInfo.h
parent1e5da550e56c06e693584060e5e292934a55fdfa (diff)
downloadbcm5719-llvm-1d7c9f7f4b5f0d11d54ddd6abc3a49bab916b7b9.tar.gz
bcm5719-llvm-1d7c9f7f4b5f0d11d54ddd6abc3a49bab916b7b9.zip
Pass the LLVM IR version of argument types down into computeInfo.
This is somewhat annoying to do this at this level, but it avoids having ABIInfo know depend on CodeGenTypes for a hint. Nothing is using this yet, so no functionality change. llvm-svn: 107111
Diffstat (limited to 'clang/lib/CodeGen/ABIInfo.h')
-rw-r--r--clang/lib/CodeGen/ABIInfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/ABIInfo.h b/clang/lib/CodeGen/ABIInfo.h
index 1ab2f55295f..c1efd056c7b 100644
--- a/clang/lib/CodeGen/ABIInfo.h
+++ b/clang/lib/CodeGen/ABIInfo.h
@@ -136,7 +136,11 @@ namespace clang {
virtual void computeInfo(CodeGen::CGFunctionInfo &FI,
ASTContext &Ctx,
- llvm::LLVMContext &VMContext) const = 0;
+ llvm::LLVMContext &VMContext,
+ // This is the preferred type for argument lowering
+ // which can be used to generate better IR.
+ const llvm::Type *const *PrefTypes = 0,
+ unsigned NumPrefTypes = 0) const = 0;
/// EmitVAArg - Emit the target dependent code to load a value of
/// \arg Ty from the va_list pointed to by \arg VAListAddr.
OpenPOWER on IntegriCloud