forked from OSchip/llvm-project
				
			Small syntax cleanup; we don't need to #define constants in C++. No functionality change intended.
llvm-svn: 130926
This commit is contained in:
		
							parent
							
								
									2311bdfa7b
								
							
						
					
					
						commit
						fd8c6adffb
					
				| 
						 | 
					@ -225,9 +225,10 @@ static bool FunctionCallsSetJmp(const Function *F) {
 | 
				
			||||||
    "vfork",
 | 
					    "vfork",
 | 
				
			||||||
    "getcontext"
 | 
					    "getcontext"
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
#define NUM_RETURNS_TWICE_FNS sizeof(ReturnsTwiceFns) / sizeof(const char *)
 | 
					  static const size_t NumReturnsTwiceFns = sizeof(ReturnsTwiceFns) /
 | 
				
			||||||
 | 
					                                           sizeof(const char *);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  for (unsigned I = 0; I < NUM_RETURNS_TWICE_FNS; ++I)
 | 
					  for (unsigned I = 0; I < NumReturnsTwiceFns; ++I)
 | 
				
			||||||
    if (const Function *Callee = M->getFunction(ReturnsTwiceFns[I])) {
 | 
					    if (const Function *Callee = M->getFunction(ReturnsTwiceFns[I])) {
 | 
				
			||||||
      if (!Callee->use_empty())
 | 
					      if (!Callee->use_empty())
 | 
				
			||||||
        for (Value::const_use_iterator
 | 
					        for (Value::const_use_iterator
 | 
				
			||||||
| 
						 | 
					@ -239,7 +240,6 @@ static bool FunctionCallsSetJmp(const Function *F) {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return false;
 | 
					  return false;
 | 
				
			||||||
#undef NUM_RETURNS_TWICE_FNS
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/// SplitCriticalSideEffectEdges - Look for critical edges with a PHI value that
 | 
					/// SplitCriticalSideEffectEdges - Look for critical edges with a PHI value that
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue