Mesa (master): gallivm: Rename variable info to opcode_info.

Vinson Lee vlee at kemper.freedesktop.org
Sun Apr 25 09:05:49 UTC 2010


Module: Mesa
Branch: master
Commit: 5d37cebc1b2f41ef68a5f8bb5ad66973ec2c1dd8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d37cebc1b2f41ef68a5f8bb5ad66973ec2c1dd8

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Apr 25 02:04:13 2010 -0700

gallivm: Rename variable info to opcode_info.

Avoid hiding existing variable already named info in outer scope.

---

 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index aed1d58..16741e4 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -1809,10 +1809,10 @@ lp_build_tgsi_soa(LLVMBuilderRef builder,
       case TGSI_TOKEN_TYPE_INSTRUCTION:
          {
             unsigned opcode = parse.FullToken.FullInstruction.Instruction.Opcode;
-            const struct tgsi_opcode_info *info = tgsi_get_opcode_info(opcode);
-            if (!emit_instruction( &bld, &parse.FullToken.FullInstruction, info ))
+            const struct tgsi_opcode_info *opcode_info = tgsi_get_opcode_info(opcode);
+            if (!emit_instruction( &bld, &parse.FullToken.FullInstruction, opcode_info ))
                _debug_printf("warning: failed to translate tgsi opcode %s to LLVM\n",
-                             info->mnemonic);
+                             opcode_info->mnemonic);
          }
 
          break;




More information about the mesa-commit mailing list