[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 29 10:13:05 PDT 2003
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.88 -> 1.89
---
Log message:
Eliminate unnecessary ->get calls that are now automatically handled.
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.88 llvm/lib/CWriter/Writer.cpp:1.89
--- llvm/lib/CWriter/Writer.cpp:1.88 Sat May 17 17:26:30 2003
+++ llvm/lib/CWriter/Writer.cpp Thu May 29 10:12:27 2003
@@ -694,7 +694,7 @@
E = STy->getElementTypes().end(); I != E; ++I) {
const Type *Ty1 = I->get();
if (isa<StructType>(Ty1) || isa<ArrayType>(Ty1))
- printContainedStructs(Ty1, StructPrinted);
+ printContainedStructs(*I, StructPrinted);
}
//Print structure type out..
@@ -1121,7 +1121,7 @@
return;
}
- const Constant *CI = dyn_cast<Constant>(I->get());
+ const Constant *CI = dyn_cast<Constant>(I);
if (HasImplicitAddress && (!CI || !CI->isNullValue()))
Out << "(&";
More information about the llvm-commits
mailing list