Skip to content
Snippets Groups Projects
Commit b8810d22 authored by Adrian Sampson's avatar Adrian Sampson
Browse files

Rename

parent b8bbe710
Branches
No related tags found
No related merge requests found
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
using namespace llvm; using namespace llvm;
namespace { namespace {
struct Hello : public FunctionPass { struct SkeletonPass : public FunctionPass {
static char ID; static char ID;
Hello() : FunctionPass(ID) {} SkeletonPass() : FunctionPass(ID) {}
virtual bool runOnFunction(Function &F) { virtual bool runOnFunction(Function &F) {
errs() << "Hello: "; errs() << "Hello: ";
...@@ -16,5 +16,5 @@ namespace { ...@@ -16,5 +16,5 @@ namespace {
}; };
} }
char Hello::ID = 0; char SkeletonPass::ID = 0;
static RegisterPass<Hello> X("hello", "Hello World Pass"); static RegisterPass<SkeletonPass> X("skeleton", "my great code transform");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment