r263060 - [modules] Simplify code logic. NFC.

Davide Italiano via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 9 13:09:51 PST 2016


Author: davide
Date: Wed Mar  9 15:09:51 2016
New Revision: 263060

URL: http://llvm.org/viewvc/llvm-project?rev=263060&view=rev
Log:
[modules] Simplify code logic. NFC.

Modified:
    cfe/trunk/lib/Basic/Module.cpp

Modified: cfe/trunk/lib/Basic/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Module.cpp?rev=263060&r1=263059&r2=263060&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Module.cpp (original)
+++ cfe/trunk/lib/Basic/Module.cpp Wed Mar  9 15:09:51 2016
@@ -418,12 +418,8 @@ void Module::print(raw_ostream &OS, unsi
     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";
   }
 




More information about the cfe-commits mailing list