mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Add statistic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e4adeb47ff
commit
395a8821bf
@ -12,6 +12,8 @@
|
||||
#include "Support/Statistic.h"
|
||||
|
||||
namespace {
|
||||
Statistic<> NumBytes("jello", "Number of bytes of machine code compiled");
|
||||
|
||||
class Emitter : public MachineCodeEmitter {
|
||||
VM &TheVM;
|
||||
|
||||
@ -62,9 +64,11 @@ void Emitter::finishFunction(MachineFunction &F) {
|
||||
BBRefs.clear();
|
||||
BBLocations.clear();
|
||||
|
||||
DEBUG(std::cerr << "Finished Code Generation of Function: "
|
||||
<< F.getFunction()->getName() << ": " << CurByte-CurBlock
|
||||
<< " bytes of text\n");
|
||||
NumBytes += CurByte-CurBlock;
|
||||
|
||||
DEBUG(std::cerr << "Finished CodeGen of [" << std::hex << (unsigned)CurBlock
|
||||
<< std::dec << "] Function: " << F.getFunction()->getName()
|
||||
<< ": " << CurByte-CurBlock << " bytes of text\n");
|
||||
}
|
||||
|
||||
void Emitter::startBasicBlock(MachineBasicBlock &BB) {
|
||||
|
Loading…
Reference in New Issue
Block a user