mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
eliminate static ctor from example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61bc8f8ca4
commit
cbfdd1f840
@ -12,6 +12,7 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "hello"
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/Function.h"
|
#include "llvm/Function.h"
|
||||||
#include "llvm/ADT/StringExtras.h"
|
#include "llvm/ADT/StringExtras.h"
|
||||||
@ -20,9 +21,9 @@
|
|||||||
#include "llvm/ADT/Statistic.h"
|
#include "llvm/ADT/Statistic.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
STATISTIC(HelloCounter, "Counts number of functions greeted");
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic HelloCounter("hellocount",
|
|
||||||
"Counts number of functions greeted");
|
|
||||||
// Hello - The first implementation, without getAnalysisUsage.
|
// Hello - The first implementation, without getAnalysisUsage.
|
||||||
struct Hello : public FunctionPass {
|
struct Hello : public FunctionPass {
|
||||||
virtual bool runOnFunction(Function &F) {
|
virtual bool runOnFunction(Function &F) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user