[modules] Simplify code logic. NFC.

llvm-svn: 263060
This commit is contained in:
Davide Italiano 2016-03-09 21:09:51 +00:00
parent ec8a8b5437
commit 7f96b39151
1 changed files with 2 additions and 6 deletions

View File

@ -418,12 +418,8 @@ void Module::print(raw_ostream &OS, unsigned Indent) const {
OS.indent(Indent + 2);
OS << "export ";
printModuleId(OS, UnresolvedExports[I].Id);
if (UnresolvedExports[I].Wildcard) {
if (UnresolvedExports[I].Id.empty())
OS << "*";
else
OS << ".*";
}
if (UnresolvedExports[I].Wildcard)
OS << (UnresolvedExports[I].Id.empty() ? "*" : ".*");
OS << "\n";
}