Running swift with LLVM interpreter (not JITting)

Good people!

I'm trying to run a simple script using LLVM's EngineKind::Interpreter without much success.

Taking the swift code print(42) and running these commands:

> swiftc -Ounchecked -emit-bc 42.swift
> lli -load=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib -load=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftSwiftOnoneSupport.dylib -force-interpreter=true 42.bc

I get the following Error:

0  lli                      0x00000001041b3697 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  lli                      0x00000001041b2b9a llvm::sys::RunSignalHandlers() + 83
2  lli                      0x00000001041b3abe SignalHandler(int) + 239
3  libsystem_platform.dylib 0x00007fff5b37cf5a _sigtramp + 26
4  libsystem_platform.dylib 0x000000010e8be188 _sigtramp + 3008631368
5  lli                      0x0000000103f116df llvm::Interpreter::visitCallSite(llvm::CallSite) + 713
6  lli                      0x0000000103f1b12c llvm::Interpreter::run() + 42
7  lli                      0x0000000103f1f7d7 llvm::Interpreter::runFunction(llvm::Function*, llvm::ArrayRef<llvm::GenericValue>) + 57
8  lli                      0x0000000103efaf15 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, char const* const*) + 1159
9  lli                      0x0000000103c4398e main + 7998
10 libdyld.dylib            0x00007fff5b06e015 start + 1
Stack dump:
0.	Program arguments: lli -load=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib -load=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftSwiftOnoneSupport.dylib -force-interpreter=true 42.bc

Running the same without force-interpreter param works as expected.

If I take the swift frontent route (> swift 42.swift) and modify Immediate.cpp to use Interpreter instead of JIT, I get an assert failure at ExecutionEngine::getMangledName, where GV doesn't have a name.

Any pointers on getting this to work?
Thanks