[LLVMdev] RegisterPass isAnalysis parameter
Trevor Harmon
trevor.w.harmon at nasa.gov
Mon Mar 1 09:56:34 PST 2010
On Feb 26, 2010, at 7:42 PM, Tom Prince wrote:
> You cannot refer to anything in anonymous namespace by name from
> another file, however, if you have a pointer, say, then you can
> still use the
> pointer.
Yes, that would make sense, except I don't see any pointers being
passed. The relevant line in lib/Transforms/Hello.cpp is:
static RegisterPass<Hello> X("hello", "Hello World Pass");
This template declaration is, somehow, sufficient to give the
PassManager access to Hello.
Trevor
More information about the llvm-dev
mailing list