[llvm-commits] [llvm] r50728 - /llvm/trunk/tools/llvmc2/CompilationGraph.cpp

Mikhail Glushenkov foldr at codedgers.com
Tue May 6 09:37:33 PDT 2008


Author: foldr
Date: Tue May  6 11:37:33 2008
New Revision: 50728

URL: http://llvm.org/viewvc/llvm-project?rev=50728&view=rev
Log:
Cosmetic change: if( -> if (

Modified:
    llvm/trunk/tools/llvmc2/CompilationGraph.cpp

Modified: llvm/trunk/tools/llvmc2/CompilationGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/CompilationGraph.cpp?rev=50728&r1=50727&r2=50728&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/CompilationGraph.cpp (original)
+++ llvm/trunk/tools/llvmc2/CompilationGraph.cpp Tue May  6 11:37:33 2008
@@ -98,7 +98,7 @@
 
     // Get to the head of the toolchain.
     const tools_vector_type& TV = getToolsVector(getLanguage(In));
-    if(TV.empty())
+    if (TV.empty())
       throw std::runtime_error("Tool names vector is empty!");
     const Node* N = &getNode(*TV.begin());
 
@@ -108,7 +108,7 @@
     while(!Last) {
       const Tool* CurTool = N->ToolPtr.getPtr();
 
-      if(CurTool->IsJoin()) {
+      if (CurTool->IsJoin()) {
         JoinList.push_back(In);
         JoinTool = CurTool;
         break;
@@ -117,7 +117,7 @@
       // Is this the last tool?
       if (!N->HasChildren() || CurTool->IsLast()) {
         // Check if the first tool is also the last
-        if(Out.empty())
+        if (Out.empty())
           Out.set(In.getBasename());
         else
           Out.appendComponent(In.getBasename());
@@ -140,7 +140,7 @@
     }
   }
 
-  if(JoinTool) {
+  if (JoinTool) {
     // If the final output name is empty, set it to "a.out"
     if (!OutputFilename.empty()) {
       Out = sys::Path(OutputFilename);
@@ -177,7 +177,7 @@
 void CompilationGraph::writeGraph() {
   std::ofstream O("CompilationGraph.dot");
 
-  if(O.good()) {
+  if (O.good()) {
     llvm::WriteGraph(this, "CompilationGraph");
     O.close();
   }





More information about the llvm-commits mailing list