Introduce two command-line flags for the instrumentation pass to control whether...
[oota-llvm.git] / tools / llvm-c-test / targets.c
index fccea09fecc034643c1eebaa7c8a45ae75207404..252c2e02a67ab5d3f5d0e6c9c90eeb722afcfe19 100644 (file)
 #include <stdio.h>
 
 int targets_list(void) {
+  LLVMTargetRef t;
   LLVMInitializeAllTargetInfos();
   LLVMInitializeAllTargets();
 
-  for (LLVMTargetRef t = LLVMGetFirstTarget(); t; t = LLVMGetNextTarget(t)) {
+  for (t = LLVMGetFirstTarget(); t; t = LLVMGetNextTarget(t)) {
     printf("%s", LLVMGetTargetName(t));
     if (LLVMTargetHasJIT(t))
       printf(" (+jit)");