mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
switch more statistics over to STATISTIC, eliminating static ctors. Also,
delete some dead ones. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -34,6 +34,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "lowerinvoke"
|
||||
#include "llvm/Transforms/Scalar.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
@ -49,14 +50,14 @@
|
||||
#include <csetjmp>
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
Statistic NumInvokes("lowerinvoke", "Number of invokes replaced");
|
||||
Statistic NumUnwinds("lowerinvoke", "Number of unwinds replaced");
|
||||
Statistic NumSpilled("lowerinvoke",
|
||||
"Number of registers live across unwind edges");
|
||||
cl::opt<bool> ExpensiveEHSupport("enable-correct-eh-support",
|
||||
STATISTIC(NumInvokes, "Number of invokes replaced");
|
||||
STATISTIC(NumUnwinds, "Number of unwinds replaced");
|
||||
STATISTIC(NumSpilled, "Number of registers live across unwind edges");
|
||||
|
||||
static cl::opt<bool> ExpensiveEHSupport("enable-correct-eh-support",
|
||||
cl::desc("Make the -lowerinvoke pass insert expensive, but correct, EH code"));
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN LowerInvoke : public FunctionPass {
|
||||
// Used for both models.
|
||||
Function *WriteFn;
|
||||
|
Reference in New Issue
Block a user