mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Clean up indentation of file body output.
Don't dump functions unless "detailedResults" is requested. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -190,7 +190,7 @@ public:
|
||||
GlobalValue::LinkageTypes linkage
|
||||
)
|
||||
{
|
||||
std::cout << " BLOCK: Function {\n";
|
||||
std::cout << "BLOCK: Function {\n";
|
||||
std::cout << " Linkage: " << linkage << "\n";
|
||||
std::cout << " Type: " << FType->getDescription() << "\n";
|
||||
}
|
||||
@ -199,7 +199,7 @@ public:
|
||||
const Type* FType
|
||||
)
|
||||
{
|
||||
std::cout << " } END BLOCK: Function\n";
|
||||
std::cout << "} END BLOCK: Function\n";
|
||||
}
|
||||
|
||||
virtual void handleBasicBlockBegin(
|
||||
@ -305,6 +305,7 @@ void BytecodeAnalyzer::DumpBytecode(
|
||||
BytecodeDumper TheHandler;
|
||||
AbstractBytecodeParser TheParser(&TheHandler);
|
||||
TheParser.ParseBytecode( Buf, Length, ModuleID );
|
||||
if ( bca.detailedResults )
|
||||
TheParser.ParseAllFunctionBodies();
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ public:
|
||||
GlobalValue::LinkageTypes linkage
|
||||
)
|
||||
{
|
||||
std::cout << " BLOCK: Function {\n";
|
||||
std::cout << "BLOCK: Function {\n";
|
||||
std::cout << " Linkage: " << linkage << "\n";
|
||||
std::cout << " Type: " << FType->getDescription() << "\n";
|
||||
}
|
||||
@ -199,7 +199,7 @@ public:
|
||||
const Type* FType
|
||||
)
|
||||
{
|
||||
std::cout << " } END BLOCK: Function\n";
|
||||
std::cout << "} END BLOCK: Function\n";
|
||||
}
|
||||
|
||||
virtual void handleBasicBlockBegin(
|
||||
@ -305,6 +305,7 @@ void BytecodeAnalyzer::DumpBytecode(
|
||||
BytecodeDumper TheHandler;
|
||||
AbstractBytecodeParser TheParser(&TheHandler);
|
||||
TheParser.ParseBytecode( Buf, Length, ModuleID );
|
||||
if ( bca.detailedResults )
|
||||
TheParser.ParseAllFunctionBodies();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user