mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-20 09:24:58 +00:00
Excise tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed3d16e443
commit
b61cdb7f10
@ -21,7 +21,6 @@
|
|||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Analysis/Verifier.h"
|
#include "llvm/Analysis/Verifier.h"
|
||||||
#include "llvm/Bytecode/Analyzer.h"
|
|
||||||
#include "llvm/Bytecode/BytecodeHandler.h"
|
#include "llvm/Bytecode/BytecodeHandler.h"
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
@ -116,9 +115,9 @@ public:
|
|||||||
|
|
||||||
if ( bca.progressiveVerify ) {
|
if ( bca.progressiveVerify ) {
|
||||||
try {
|
try {
|
||||||
verifyModule(*M, ThrowExceptionAction);
|
verifyModule(*M, ThrowExceptionAction);
|
||||||
} catch ( std::string& msg ) {
|
} catch ( std::string& msg ) {
|
||||||
bca.VerifyInfo += "Verify@Finish: " + msg + "\n";
|
bca.VerifyInfo += "Verify@Finish: " + msg + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -132,9 +131,9 @@ public:
|
|||||||
dump << " } End Module " << id << "\n";
|
dump << " } End Module " << id << "\n";
|
||||||
if ( bca.progressiveVerify ) {
|
if ( bca.progressiveVerify ) {
|
||||||
try {
|
try {
|
||||||
verifyModule(*M, ThrowExceptionAction);
|
verifyModule(*M, ThrowExceptionAction);
|
||||||
} catch ( std::string& msg ) {
|
} catch ( std::string& msg ) {
|
||||||
bca.VerifyInfo += "Verify@EndModule: " + msg + "\n";
|
bca.VerifyInfo += "Verify@EndModule: " + msg + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -145,8 +144,8 @@ public:
|
|||||||
Module::PointerSize PointerSize ///< PointerSize indicator
|
Module::PointerSize PointerSize ///< PointerSize indicator
|
||||||
) {
|
) {
|
||||||
dump << " RevisionNum: " << int(RevisionNum)
|
dump << " RevisionNum: " << int(RevisionNum)
|
||||||
<< " Endianness: " << Endianness
|
<< " Endianness: " << Endianness
|
||||||
<< " PointerSize: " << PointerSize << "\n";
|
<< " PointerSize: " << PointerSize << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleModuleGlobalsBegin() {
|
virtual void handleModuleGlobalsBegin() {
|
||||||
@ -165,11 +164,11 @@ public:
|
|||||||
|
|
||||||
dump << " GV: "
|
dump << " GV: "
|
||||||
<< ( initSlot == 0 ? "Uni" : "I" ) << "nitialized, "
|
<< ( initSlot == 0 ? "Uni" : "I" ) << "nitialized, "
|
||||||
<< ( isConstant? "Constant, " : "Variable, ")
|
<< ( isConstant? "Constant, " : "Variable, ")
|
||||||
<< " Linkage=" << Linkage << " Type="
|
<< " Linkage=" << Linkage << " Type="
|
||||||
<< ElemType->getDescription()
|
<< ElemType->getDescription()
|
||||||
<< " Slot=" << SlotNum << " InitSlot=" << initSlot
|
<< " Slot=" << SlotNum << " InitSlot=" << initSlot
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleType( const Type* Ty ) {
|
virtual void handleType( const Type* Ty ) {
|
||||||
@ -178,7 +177,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleFunctionDeclaration(
|
virtual void handleFunctionDeclaration(
|
||||||
Function* Func ///< The function
|
Function* Func ///< The function
|
||||||
) {
|
) {
|
||||||
bca.numFunctions++;
|
bca.numFunctions++;
|
||||||
bca.numValues++;
|
bca.numValues++;
|
||||||
@ -197,9 +196,9 @@ public:
|
|||||||
dump << " } END BLOCK: ModuleGlobalInfo\n";
|
dump << " } END BLOCK: ModuleGlobalInfo\n";
|
||||||
if ( bca.progressiveVerify ) {
|
if ( bca.progressiveVerify ) {
|
||||||
try {
|
try {
|
||||||
verifyModule(*M, ThrowExceptionAction);
|
verifyModule(*M, ThrowExceptionAction);
|
||||||
} catch ( std::string& msg ) {
|
} catch ( std::string& msg ) {
|
||||||
bca.VerifyInfo += "Verify@EndModuleGlobalInfo: " + msg + "\n";
|
bca.VerifyInfo += "Verify@EndModuleGlobalInfo: " + msg + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -216,7 +215,7 @@ public:
|
|||||||
virtual void handleCompactionTableType( unsigned i, unsigned TypSlot,
|
virtual void handleCompactionTableType( unsigned i, unsigned TypSlot,
|
||||||
const Type* Ty ) {
|
const Type* Ty ) {
|
||||||
dump << " Type: " << i << " Slot:" << TypSlot
|
dump << " Type: " << i << " Slot:" << TypSlot
|
||||||
<< " is " << Ty->getDescription() << "\n";
|
<< " is " << Ty->getDescription() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleCompactionTableValue(
|
virtual void handleCompactionTableValue(
|
||||||
@ -225,8 +224,8 @@ public:
|
|||||||
unsigned ValSlot,
|
unsigned ValSlot,
|
||||||
const Type* Ty ) {
|
const Type* Ty ) {
|
||||||
dump << " Value: " << i << " TypSlot: " << TypSlot
|
dump << " Value: " << i << " TypSlot: " << TypSlot
|
||||||
<< " ValSlot:" << ValSlot << " is " << Ty->getDescription()
|
<< " ValSlot:" << ValSlot << " is " << Ty->getDescription()
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleCompactionTableEnd() {
|
virtual void handleCompactionTableEnd() {
|
||||||
@ -241,19 +240,19 @@ public:
|
|||||||
virtual void handleSymbolTablePlane(unsigned Ty, unsigned NumEntries,
|
virtual void handleSymbolTablePlane(unsigned Ty, unsigned NumEntries,
|
||||||
const Type* Typ) {
|
const Type* Typ) {
|
||||||
dump << " Plane: Ty=" << Ty << " Size=" << NumEntries
|
dump << " Plane: Ty=" << Ty << " Size=" << NumEntries
|
||||||
<< " Type: " << Typ->getDescription() << "\n";
|
<< " Type: " << Typ->getDescription() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleSymbolTableType(unsigned i, unsigned slot,
|
virtual void handleSymbolTableType(unsigned i, unsigned slot,
|
||||||
const std::string& name ) {
|
const std::string& name ) {
|
||||||
dump << " Type " << i << " Slot=" << slot
|
dump << " Type " << i << " Slot=" << slot
|
||||||
<< " Name: " << name << "\n";
|
<< " Name: " << name << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleSymbolTableValue(unsigned i, unsigned slot,
|
virtual void handleSymbolTableValue(unsigned i, unsigned slot,
|
||||||
const std::string& name ) {
|
const std::string& name ) {
|
||||||
dump << " Value " << i << " Slot=" << slot
|
dump << " Value " << i << " Slot=" << slot
|
||||||
<< " Name: " << name << "\n";
|
<< " Name: " << name << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void handleSymbolTableEnd() {
|
virtual void handleSymbolTableEnd() {
|
||||||
@ -291,9 +290,9 @@ public:
|
|||||||
|
|
||||||
if ( bca.progressiveVerify ) {
|
if ( bca.progressiveVerify ) {
|
||||||
try {
|
try {
|
||||||
verifyModule(*M, ThrowExceptionAction);
|
verifyModule(*M, ThrowExceptionAction);
|
||||||
} catch ( std::string& msg ) {
|
} catch ( std::string& msg ) {
|
||||||
bca.VerifyInfo += "Verify@EndFunction: " + msg + "\n";
|
bca.VerifyInfo += "Verify@EndFunction: " + msg + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -306,10 +305,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual bool handleInstruction( unsigned Opcode, const Type* iType,
|
virtual bool handleInstruction( unsigned Opcode, const Type* iType,
|
||||||
std::vector<unsigned>& Operands, unsigned Size){
|
std::vector<unsigned>& Operands, unsigned Size){
|
||||||
dump << " INST: OpCode="
|
dump << " INST: OpCode="
|
||||||
<< Instruction::getOpcodeName(Opcode) << " Type="
|
<< Instruction::getOpcodeName(Opcode) << " Type="
|
||||||
<< iType->getDescription() << "\n";
|
<< iType->getDescription() << "\n";
|
||||||
for ( unsigned i = 0; i < Operands.size(); ++i )
|
for ( unsigned i = 0; i < Operands.size(); ++i )
|
||||||
dump << " Op#" << i << " Slot=" << Operands[i] << "\n";
|
dump << " Op#" << i << " Slot=" << Operands[i] << "\n";
|
||||||
|
|
||||||
@ -358,8 +357,8 @@ public:
|
|||||||
|
|
||||||
virtual void handleConstantArray( const ArrayType* AT,
|
virtual void handleConstantArray( const ArrayType* AT,
|
||||||
std::vector<Constant*>& Elements,
|
std::vector<Constant*>& Elements,
|
||||||
unsigned TypeSlot,
|
unsigned TypeSlot,
|
||||||
Constant* ArrayVal ) {
|
Constant* ArrayVal ) {
|
||||||
dump << " ARRAY: " << AT->getDescription()
|
dump << " ARRAY: " << AT->getDescription()
|
||||||
<< " TypeSlot=" << TypeSlot << "\n";
|
<< " TypeSlot=" << TypeSlot << "\n";
|
||||||
for ( unsigned i = 0; i < Elements.size(); ++i ) {
|
for ( unsigned i = 0; i < Elements.size(); ++i ) {
|
||||||
@ -378,7 +377,7 @@ public:
|
|||||||
virtual void handleConstantStruct(
|
virtual void handleConstantStruct(
|
||||||
const StructType* ST,
|
const StructType* ST,
|
||||||
std::vector<Constant*>& Elements,
|
std::vector<Constant*>& Elements,
|
||||||
Constant* StructVal)
|
Constant* StructVal)
|
||||||
{
|
{
|
||||||
dump << " STRUC: " << ST->getDescription() << "\n";
|
dump << " STRUC: " << ST->getDescription() << "\n";
|
||||||
for ( unsigned i = 0; i < Elements.size(); ++i ) {
|
for ( unsigned i = 0; i < Elements.size(); ++i ) {
|
||||||
@ -394,7 +393,7 @@ public:
|
|||||||
virtual void handleConstantPointer( const PointerType* PT,
|
virtual void handleConstantPointer( const PointerType* PT,
|
||||||
unsigned Slot, GlobalValue* GV, Constant* PtrVal) {
|
unsigned Slot, GlobalValue* GV, Constant* PtrVal) {
|
||||||
dump << " PNTR: " << PT->getDescription()
|
dump << " PNTR: " << PT->getDescription()
|
||||||
<< " Slot=" << Slot << " GlobalValue=";
|
<< " Slot=" << Slot << " GlobalValue=";
|
||||||
GV->print(dump);
|
GV->print(dump);
|
||||||
dump << "\n Value=";
|
dump << "\n Value=";
|
||||||
PtrVal->print(dump);
|
PtrVal->print(dump);
|
||||||
@ -415,9 +414,9 @@ public:
|
|||||||
dump << " } END BLOCK: GlobalConstants\n";
|
dump << " } END BLOCK: GlobalConstants\n";
|
||||||
if ( bca.progressiveVerify ) {
|
if ( bca.progressiveVerify ) {
|
||||||
try {
|
try {
|
||||||
verifyModule(*M, ThrowExceptionAction);
|
verifyModule(*M, ThrowExceptionAction);
|
||||||
} catch ( std::string& msg ) {
|
} catch ( std::string& msg ) {
|
||||||
bca.VerifyInfo += "Verify@EndGlobalConstants: " + msg + "\n";
|
bca.VerifyInfo += "Verify@EndGlobalConstants: " + msg + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user