vmjc + llc questions

Hi,

I’ve been trying to compile a simple helloworld Java program to native code, and I’ve been having trouble. I’m tripping an assertion that I don’t quite understand yet. I’m just curious if anybody can point me in the right direction.

$ javac helloworld.java
$ vmjc -o helloworld.bc helloworld.class

$ llc -load=<…>/Release+Asserts/lib/StaticGCPrinter.so helloworld.bc -o helloworld.s

llc: VmkitGCPrinter.cpp:268: llvm::Constant* FindMetadata(const llvm::Function&): Assertion `0 && “Should have found a JavaMethod”’ failed.
0 llc 0x000000000103726f
1 llc 0x0000000001037799
2 libpthread.so.0 0x00007fea25133cb0
3 libc.so.6 0x00007fea24387445 gsignal + 53
4 libc.so.6 0x00007fea2438abab abort + 379
5 libc.so.6 0x00007fea2438010e
6 libc.so.6 0x00007fea243801b2
7 StaticGCPrinter.so 0x00007fea2414cbc9 FindMetadata(llvm::Function const&) + 4553
8 StaticGCPrinter.so 0x00007fea2414d161
9 llc 0x0000000000b3c13d llvm::AsmPrinter::doFinalization(llvm::Module&) + 1021
10 llc 0x0000000000f68cc4 llvm::FPPassManager::doFinalization(llvm::Module&) + 84
11 llc 0x0000000000f6afe9 llvm::FPPassManager::runOnModule(llvm::Module&) + 73
12 llc 0x0000000000f6ac74 llvm::MPPassManager::runOnModule(llvm::Module&) + 532
13 llc 0x0000000000f6dfab llvm::PassManagerImpl::run(llvm::Module&) + 171
14 llc 0x000000000053aac3 main + 4019
15 libc.so.6 0x00007fea2437276d __libc_start_main + 237
16 llc 0x000000000054b8d9
Stack dump:
0. Program arguments: llc -load=<…>/Release+Asserts/lib/StaticGCPrinter.so helloworld.bc -o helloworld.s

  1. Running pass ‘Function Pass Manager’ on module ‘helloworld.bc’.

Thanks,
Tim