mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
eliminate static ctor from example.
llvm-svn: 32696
This commit is contained in:
parent
a4ef9d3263
commit
8f9d2ddaf7
@ -12,6 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "hello"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
@ -20,9 +21,9 @@
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
using namespace llvm;
|
||||
|
||||
STATISTIC(HelloCounter, "Counts number of functions greeted");
|
||||
|
||||
namespace {
|
||||
Statistic HelloCounter("hellocount",
|
||||
"Counts number of functions greeted");
|
||||
// Hello - The first implementation, without getAnalysisUsage.
|
||||
struct Hello : public FunctionPass {
|
||||
virtual bool runOnFunction(Function &F) {
|
||||
|
Loading…
Reference in New Issue
Block a user