[CUDA] Make empty parameter lists in nvptx function decls easier to read.
Summary:
Before:
  .func  (.param .b32 func_retval0) _ZL21__nvvm_reflect_anchorv(
  )
  {
After:
  .func  (.param .b32 func_retval0) _ZL21__nvvm_reflect_anchorv()
  {
Reviewers: bkramer
Subscribers: llvm-commits, tra, jhen, echristo, jholewinski
Differential Revision: http://reviews.llvm.org/D16512
llvm-svn: 258637
			
			
This commit is contained in:
		
							parent
							
								
									58e1998520
								
							
						
					
					
						commit
						2a161f986f
					
				| 
						 | 
					@ -1428,6 +1428,11 @@ void NVPTXAsmPrinter::emitFunctionParamList(const Function *F, raw_ostream &O) {
 | 
				
			||||||
  bool isABI = (nvptxSubtarget->getSmVersion() >= 20);
 | 
					  bool isABI = (nvptxSubtarget->getSmVersion() >= 20);
 | 
				
			||||||
  MVT thePointerTy = TLI->getPointerTy(DL);
 | 
					  MVT thePointerTy = TLI->getPointerTy(DL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if (F->arg_empty()) {
 | 
				
			||||||
 | 
					    O << "()\n";
 | 
				
			||||||
 | 
					    return;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  O << "(\n";
 | 
					  O << "(\n";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  for (I = F->arg_begin(), E = F->arg_end(); I != E; ++I, paramIndex++) {
 | 
					  for (I = F->arg_begin(), E = F->arg_end(); I != E; ++I, paramIndex++) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue