[llvm] r222508 - Add extra new line and remove some trailing whitespace from tablegen RegisterInfo output file.

Craig Topper craig.topper at gmail.com
Thu Nov 20 21:58:14 PST 2014


Author: ctopper
Date: Thu Nov 20 23:58:14 2014
New Revision: 222508

URL: http://llvm.org/viewvc/llvm-project?rev=222508&view=rev
Log:
Add extra new line and remove some trailing whitespace from tablegen RegisterInfo output file.

Modified:
    llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp

Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=222508&r1=222507&r2=222508&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Thu Nov 20 23:58:14 2014
@@ -152,7 +152,7 @@ void RegisterInfoEmitter::runEnums(raw_o
       OS << "}\n";
   }
 
-  OS << "} // End llvm namespace \n";
+  OS << "} // End llvm namespace\n";
   OS << "#endif // GET_REGINFO_ENUM\n\n";
 }
 
@@ -952,7 +952,7 @@ RegisterInfoEmitter::runMCDesc(raw_ostre
 
   OS << "}\n\n";
 
-  OS << "} // End llvm namespace \n";
+  OS << "} // End llvm namespace\n";
   OS << "#endif // GET_REGINFO_MC_DESC\n\n";
 }
 
@@ -1009,7 +1009,7 @@ RegisterInfoEmitter::runTargetHeader(raw
     }
     OS << "} // end of namespace " << TargetName << "\n\n";
   }
-  OS << "} // End llvm namespace \n";
+  OS << "} // End llvm namespace\n";
   OS << "#endif // GET_REGINFO_HEADER\n\n";
 }
 
@@ -1181,7 +1181,7 @@ RegisterInfoEmitter::runTargetDesc(raw_o
     }
 
     // Now emit the actual value-initialized register class instances.
-    OS << "namespace " << RegisterClasses[0]->Namespace
+    OS << "\nnamespace " << RegisterClasses[0]->Namespace
        << " {   // Register class instances\n";
 
     for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
@@ -1345,7 +1345,7 @@ RegisterInfoEmitter::runTargetDesc(raw_o
   }
   OS << "\n\n";
 
-  OS << "} // End llvm namespace \n";
+  OS << "} // End llvm namespace\n";
   OS << "#endif // GET_REGINFO_TARGET_DESC\n\n";
 }
 





More information about the llvm-commits mailing list