[LLVMdev] How to supply a non-default constructor to RegisterPass ?

Dirk Schroetter dschroetter at googlemail.com
Mon Sep 30 22:11:00 PDT 2013


I did read the documentation but I am at a loss still.

I do have the following:

Pass *createFooPass (char *foo1) {
  return new FooPass (foo1);

static RegisterPass<FooPass> X("foo-pass", "foo", false, true);

Where exactly do I supply the non-default crore in this example ?



More information about the llvm-dev mailing list