[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp

Misha Brukman brukman at cs.uiuc.edu
Wed Jul 9 12:35:05 PDT 2003


Changes in directory llvm/lib/CWriter:

Writer.cpp updated: 1.105 -> 1.106

---
Log message:

Some beautification changes (tabs to spaces, removed extra blank lines);
no functionality changed.


---
Diffs of the changes:

Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.105 llvm/lib/CWriter/Writer.cpp:1.106
--- llvm/lib/CWriter/Writer.cpp:1.105	Tue Jul  8 09:52:09 2003
+++ llvm/lib/CWriter/Writer.cpp	Wed Jul  9 12:33:50 2003
@@ -471,9 +471,9 @@
           << "*)&FloatConstant" << I->second << ")";
     } else {
       if (FPCSafeToPrint (FPC)) {
-	Out << ftostr (FPC->getValue ());
+        Out << ftostr (FPC->getValue ());
       } else {
-	Out << FPC->getValue(); // Who knows? Give it our best shot...
+        Out << FPC->getValue(); // Who knows? Give it our best shot...
       }
     }
     break;
@@ -674,7 +674,7 @@
   }
 
   // Print Malloc prototype if needed
-  if (needsMalloc){
+  if (needsMalloc) {
     Out << "\n/* Malloc to make sun happy */\n";
     Out << "extern void * malloc();\n\n";
   }
@@ -691,7 +691,6 @@
       }
   }
 
-  
   // Output the global variable definitions and contents...
   if (!M->gempty()) {
     Out << "\n\n/* Global Variable Definitions and Initialization */\n";
@@ -779,7 +778,7 @@
 // this one depends on.
 void CWriter::printContainedStructs(const Type *Ty,
                                     std::set<const StructType*> &StructPrinted){
-  if (const StructType *STy = dyn_cast<StructType>(Ty)){
+  if (const StructType *STy = dyn_cast<StructType>(Ty)) {
     //Check to see if we have already printed this struct
     if (StructPrinted.count(STy) == 0) {
       // Print all contained types first...
@@ -860,7 +859,6 @@
   FunctionInnards << ")";
   // Print out the return type and the entire signature for that matter
   printType(Out, F->getReturnType(), FunctionInnards.str());
-  
 }
 
 void CWriter::printFunction(Function *F) {





More information about the llvm-commits mailing list