[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 24 16:01:01 PDT 2003
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.118 -> 1.119
---
Log message:
Simplify code
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.118 llvm/lib/CWriter/Writer.cpp:1.119
--- llvm/lib/CWriter/Writer.cpp:1.118 Sun Aug 24 08:06:10 2003
+++ llvm/lib/CWriter/Writer.cpp Sun Aug 24 16:00:22 2003
@@ -182,9 +182,7 @@
// Check to see if the type is named.
if (!IgnoreName || isa<OpaqueType>(Ty)) {
std::map<const Type *, std::string>::iterator I = TypeNames.find(Ty);
- if (I != TypeNames.end()) {
- return Out << I->second << " " << NameSoFar;
- }
+ if (I != TypeNames.end()) return Out << I->second << " " << NameSoFar;
}
switch (Ty->getPrimitiveID()) {
More information about the llvm-commits
mailing list