[llvm-commits] CVS: llvm-gcc/gcc/llvm-representation.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 30 12:02:31 PST 2004
Changes in directory llvm-gcc/gcc:
llvm-representation.c updated: 1.15 -> 1.16
---
Log message:
This code is now redundant
---
Diffs of the changes: (+0 -6)
Index: llvm-gcc/gcc/llvm-representation.c
diff -u llvm-gcc/gcc/llvm-representation.c:1.15 llvm-gcc/gcc/llvm-representation.c:1.16
--- llvm-gcc/gcc/llvm-representation.c:1.15 Sun Nov 28 01:54:45 2004
+++ llvm-gcc/gcc/llvm-representation.c Tue Nov 30 14:02:18 2004
@@ -361,16 +361,10 @@
/* llvm_constant_expr implementation ******************************************
*/
llvm_constant_expr *llvm_constant_expr_new(llvm_instruction *I) {
- unsigned i;
llvm_constant_expr *CE =
(llvm_constant_expr*)xcalloc(sizeof(llvm_constant_expr), 1);
llvm_constant_construct(G2C(CE), D2V(I)->Ty, "", ConstantExpr, "");
CE->Inst = I;
-
-
- for (i = 0; i != I->NumOperands; ++i)
- if (llvm_value_is_global(I->Operands[i]))
- MarkLLVMNameAsUsed(I->Operands[i]);
return CE;
}
More information about the llvm-commits
mailing list