summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86ATTAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 22:59:26 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 22:59:26 +0000
commit95b2c7da5e83670881270c1cd231a240be0556d9 (patch)
treec7202943532cb7acd4e14353a1c002dc2c388fb3 /lib/Target/X86/X86ATTAsmPrinter.cpp
parentcecf56b0691b1f3e9ff4435b60f9bcbfd79f155a (diff)
downloadllvm-95b2c7da5e83670881270c1cd231a240be0556d9.tar.gz
llvm-95b2c7da5e83670881270c1cd231a240be0556d9.tar.bz2
llvm-95b2c7da5e83670881270c1cd231a240be0556d9.tar.xz
eliminate static ctors for Statistic objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ATTAsmPrinter.cpp')
-rwxr-xr-xlib/Target/X86/X86ATTAsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp
index f9645b80d2..f9b03b2455 100755
--- a/lib/Target/X86/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/X86ATTAsmPrinter.cpp
@@ -13,6 +13,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "asm-printer"
#include "X86ATTAsmPrinter.h"
#include "X86.h"
#include "X86MachineFunctionInfo.h"
@@ -23,8 +24,11 @@
#include "llvm/Support/Mangler.h"
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Target/TargetOptions.h"
+#include "llvm/ADT/Statistic.h"
using namespace llvm;
+STATISTIC(EmittedInsts, "Number of machine instrs printed");
+
/// getSectionForFunction - Return the section that we should emit the
/// specified function body into.
std::string X86ATTAsmPrinter::getSectionForFunction(const Function &F) const {