mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Simplify code
llvm-svn: 8139
This commit is contained in:
parent
e16f66a7e4
commit
c444f0ceea
@ -182,9 +182,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
|
||||
// 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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user