[CUDA] Move argument type lists to the stack. NFC.

llvm-svn: 274433
This commit is contained in:
Benjamin Kramer 2016-07-02 12:03:57 +00:00
parent 309347385e
commit 6d1c10bb8e
1 changed files with 4 additions and 4 deletions

View File

@ -189,7 +189,7 @@ llvm::Function *CGNVCUDARuntime::makeRegisterGlobalsFn() {
// void __cudaRegisterFunction(void **, const char *, char *, const char *,
// int, uint3*, uint3*, dim3*, dim3*, int*)
std::vector<llvm::Type *> RegisterFuncParams = {
llvm::Type *RegisterFuncParams[] = {
VoidPtrPtrTy, CharPtrTy, CharPtrTy, CharPtrTy, IntTy,
VoidPtrTy, VoidPtrTy, VoidPtrTy, VoidPtrTy, IntTy->getPointerTo()};
llvm::Constant *RegisterFunc = CGM.CreateRuntimeFunction(
@ -213,9 +213,9 @@ llvm::Function *CGNVCUDARuntime::makeRegisterGlobalsFn() {
// void __cudaRegisterVar(void **, char *, char *, const char *,
// int, int, int, int)
std::vector<llvm::Type *> RegisterVarParams = {
VoidPtrPtrTy, CharPtrTy, CharPtrTy, CharPtrTy,
IntTy, IntTy, IntTy, IntTy};
llvm::Type *RegisterVarParams[] = {VoidPtrPtrTy, CharPtrTy, CharPtrTy,
CharPtrTy, IntTy, IntTy,
IntTy, IntTy};
llvm::Constant *RegisterVar = CGM.CreateRuntimeFunction(
llvm::FunctionType::get(IntTy, RegisterVarParams, false),
"__cudaRegisterVar");