[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Analyzer.cpp

LLVM llvm at cs.uiuc.edu
Sun Jul 4 06:02:01 PDT 2004


Changes in directory llvm/lib/Bytecode/Reader:

Analyzer.cpp updated: 1.7 -> 1.8

---
Log message:

Excise tabs.


---
Diffs of the changes:  (+31 -32)

Index: llvm/lib/Bytecode/Reader/Analyzer.cpp
diff -u llvm/lib/Bytecode/Reader/Analyzer.cpp:1.7 llvm/lib/Bytecode/Reader/Analyzer.cpp:1.8
--- llvm/lib/Bytecode/Reader/Analyzer.cpp:1.7	Tue Jun 29 18:23:12 2004
+++ llvm/lib/Bytecode/Reader/Analyzer.cpp	Sun Jul  4 06:00:39 2004
@@ -21,7 +21,6 @@
 #include "llvm/DerivedTypes.h"
 #include "llvm/Module.h"
 #include "llvm/Analysis/Verifier.h"
-#include "llvm/Bytecode/Analyzer.h"
 #include "llvm/Bytecode/BytecodeHandler.h"
 #include <iomanip>
 #include <sstream>
@@ -116,9 +115,9 @@
 
     if ( bca.progressiveVerify ) {
       try {
-	verifyModule(*M, ThrowExceptionAction);
+        verifyModule(*M, ThrowExceptionAction);
       } catch ( std::string& msg ) {
-	bca.VerifyInfo += "Verify at Finish: " + msg + "\n";
+        bca.VerifyInfo += "Verify at Finish: " + msg + "\n";
       }
     }
   }
@@ -132,9 +131,9 @@
     dump << "  } End Module " << id << "\n";
     if ( bca.progressiveVerify ) {
       try {
-	verifyModule(*M, ThrowExceptionAction);
+        verifyModule(*M, ThrowExceptionAction);
       } catch ( std::string& msg ) {
-	bca.VerifyInfo += "Verify at EndModule: " + msg + "\n";
+        bca.VerifyInfo += "Verify at EndModule: " + msg + "\n";
       }
     }
   }
@@ -145,8 +144,8 @@
     Module::PointerSize PointerSize   ///< PointerSize indicator
   ) { 
     dump << "    RevisionNum: " << int(RevisionNum) 
-	 << " Endianness: " << Endianness
-	 << " PointerSize: " << PointerSize << "\n";
+         << " Endianness: " << Endianness
+         << " PointerSize: " << PointerSize << "\n";
   }
 
   virtual void handleModuleGlobalsBegin() { 
@@ -165,11 +164,11 @@
 
     dump << "      GV: "
          << ( initSlot == 0 ? "Uni" : "I" ) << "nitialized, "
-	 << ( isConstant? "Constant, " : "Variable, ")
-	 << " Linkage=" << Linkage << " Type=" 
-	 << ElemType->getDescription() 
-	 << " Slot=" << SlotNum << " InitSlot=" << initSlot 
-	 << "\n";
+         << ( isConstant? "Constant, " : "Variable, ")
+         << " Linkage=" << Linkage << " Type=" 
+         << ElemType->getDescription() 
+         << " Slot=" << SlotNum << " InitSlot=" << initSlot 
+         << "\n";
   }
 
   virtual void handleType( const Type* Ty ) { 
@@ -178,7 +177,7 @@
   }
 
   virtual void handleFunctionDeclaration( 
-    Function* Func	    ///< The function
+    Function* Func            ///< The function
   ) {
     bca.numFunctions++;
     bca.numValues++;
@@ -197,9 +196,9 @@
     dump << "    } END BLOCK: ModuleGlobalInfo\n";
     if ( bca.progressiveVerify ) {
       try {
-	verifyModule(*M, ThrowExceptionAction);
+        verifyModule(*M, ThrowExceptionAction);
       } catch ( std::string& msg ) {
-	bca.VerifyInfo += "Verify at EndModuleGlobalInfo: " + msg + "\n";
+        bca.VerifyInfo += "Verify at EndModuleGlobalInfo: " + msg + "\n";
       }
     }
   }
@@ -216,7 +215,7 @@
   virtual void handleCompactionTableType( unsigned i, unsigned TypSlot, 
       const Type* Ty ) {
     dump << "        Type: " << i << " Slot:" << TypSlot 
-	      << " is " << Ty->getDescription() << "\n"; 
+              << " is " << Ty->getDescription() << "\n"; 
   }
 
   virtual void handleCompactionTableValue( 
@@ -225,8 +224,8 @@
     unsigned ValSlot, 
     const Type* Ty ) { 
     dump << "        Value: " << i << " TypSlot: " << TypSlot 
-	 << " ValSlot:" << ValSlot << " is " << Ty->getDescription() 
-	 << "\n";
+         << " ValSlot:" << ValSlot << " is " << Ty->getDescription() 
+         << "\n";
   }
 
   virtual void handleCompactionTableEnd() { 
@@ -241,19 +240,19 @@
   virtual void handleSymbolTablePlane(unsigned Ty, unsigned NumEntries, 
     const Type* Typ) { 
     dump << "      Plane: Ty=" << Ty << " Size=" << NumEntries
-	 << " Type: " << Typ->getDescription() << "\n"; 
+         << " Type: " << Typ->getDescription() << "\n"; 
   }
 
   virtual void handleSymbolTableType(unsigned i, unsigned slot, 
     const std::string& name ) { 
     dump << "        Type " << i << " Slot=" << slot
-	      << " Name: " << name << "\n"; 
+              << " Name: " << name << "\n"; 
   }
 
   virtual void handleSymbolTableValue(unsigned i, unsigned slot, 
     const std::string& name ) { 
     dump << "        Value " << i << " Slot=" << slot
-	      << " Name: " << name << "\n";
+              << " Name: " << name << "\n";
   }
 
   virtual void handleSymbolTableEnd() { 
@@ -291,9 +290,9 @@
 
     if ( bca.progressiveVerify ) {
       try {
-	verifyModule(*M, ThrowExceptionAction);
+        verifyModule(*M, ThrowExceptionAction);
       } catch ( std::string& msg ) {
-	bca.VerifyInfo += "Verify at EndFunction: " + msg + "\n";
+        bca.VerifyInfo += "Verify at EndFunction: " + msg + "\n";
       }
     }
   }
@@ -306,10 +305,10 @@
   }
 
   virtual bool handleInstruction( unsigned Opcode, const Type* iType, 
-				std::vector<unsigned>& Operands, unsigned Size){
+                                std::vector<unsigned>& Operands, unsigned Size){
     dump << "    INST: OpCode=" 
-	 << Instruction::getOpcodeName(Opcode) << " Type=" 
-	 << iType->getDescription() << "\n";
+         << Instruction::getOpcodeName(Opcode) << " Type=" 
+         << iType->getDescription() << "\n";
     for ( unsigned i = 0; i < Operands.size(); ++i ) 
       dump << "      Op#" << i << " Slot=" << Operands[i] << "\n";
 
@@ -358,8 +357,8 @@
 
   virtual void handleConstantArray( const ArrayType* AT, 
           std::vector<Constant*>& Elements,
-	  unsigned TypeSlot,
-	  Constant* ArrayVal ) {
+          unsigned TypeSlot,
+          Constant* ArrayVal ) {
     dump << "      ARRAY: " << AT->getDescription() 
          << " TypeSlot=" << TypeSlot << "\n";
     for ( unsigned i = 0; i < Elements.size(); ++i ) {
@@ -378,7 +377,7 @@
   virtual void handleConstantStruct(
         const StructType* ST,
         std::vector<Constant*>& Elements,
-	Constant* StructVal)
+        Constant* StructVal)
   {
     dump << "      STRUC: " << ST->getDescription() << "\n";
     for ( unsigned i = 0; i < Elements.size(); ++i ) {
@@ -394,7 +393,7 @@
   virtual void handleConstantPointer( const PointerType* PT, 
       unsigned Slot, GlobalValue* GV, Constant* PtrVal) {
     dump << "       PNTR: " << PT->getDescription() 
-	 << " Slot=" << Slot << " GlobalValue=";
+         << " Slot=" << Slot << " GlobalValue=";
     GV->print(dump);
     dump << "\n        Value=";
     PtrVal->print(dump);
@@ -415,9 +414,9 @@
     dump << "    } END BLOCK: GlobalConstants\n";
     if ( bca.progressiveVerify ) {
       try {
-	verifyModule(*M, ThrowExceptionAction);
+        verifyModule(*M, ThrowExceptionAction);
       } catch ( std::string& msg ) {
-	bca.VerifyInfo += "Verify at EndGlobalConstants: " + msg + "\n";
+        bca.VerifyInfo += "Verify at EndGlobalConstants: " + msg + "\n";
       }
     }
   }





More information about the llvm-commits mailing list