[LLVMdev] can't run the Hello Pass: either not registered or registered multiple times, what is the problem?
criswell at uiuc.edu
Wed Jun 2 14:32:30 PDT 2010
Anton Korobeynikov wrote:
>> opt -load Release/lib/Hello.dll -hello < ./hello.bc > /dev/null
>> opt.exe: Unknown command line argument '-hello'. Try:
>> Could somebody give me a hint?
> Loadable modules (e.g. passes) are not supported on windows. And will
> probably never be.
As an alternative, you can either:
1) Modify the opt program to statically link in the library implementing
2) Create a new program (based on opt) that runs your pass on a
specified bitcode file.
SAFECode has done the latter; you can see what we did by checkout out
the SAFECode source code
(http://safecode.cs.illinois.edu/downloads.html) and looking at
-- John T.
More information about the llvm-dev