llvm.org GIT mirror llvm / 0adcd35
llvm-mc: Add statistic for number of fragments emitted by the assembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80033 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 11 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "assembler"
910 #include "llvm/MC/MCAssembler.h"
1011 #include "llvm/MC/MCSectionMachO.h"
1112 #include "llvm/Target/TargetMachOWriterInfo.h"
1213 #include "llvm/ADT/DenseMap.h"
1314 #include "llvm/ADT/SmallString.h"
15 #include "llvm/ADT/Statistic.h"
1416 #include "llvm/ADT/StringMap.h"
1517 #include "llvm/ADT/Twine.h"
1618 #include "llvm/Support/ErrorHandling.h"
1921 using namespace llvm;
2022
2123 class MachObjectWriter;
24
25 STATISTIC(EmittedFragments, "Number of emitted assembler fragments");
2226
2327 static void WriteFileData(raw_ostream &OS, const MCSectionData &SD,
2428 MachObjectWriter &MOW);
691695 uint64_t Start = OS.tell();
692696 (void) Start;
693697
698 ++EmittedFragments;
699
694700 // FIXME: Embed in fragments instead?
695701 switch (F.getKind()) {
696702 case MCFragment::FT_Align: {