Displaying 2 results from an estimated 2 matches for "createjitstreamer".
2010 Apr 17
0
[LLVMdev] Intro to the MC Project
...ies ?
- Currently I'm using the LLVMTargetMachine::addPassesToEmitFile with
FileType set to CGFT_ObjectFile, and with the triple environment name hack,
I am able to create the correct streamer :
if (Triple(TargetTriple).getEnvironmentName().equals("JIT")) {
AsmStreamer.reset(createJITStreamer(*Context, *TAB, Out, MCE));
} else {
AsmStreamer.reset(createMachOStreamer(*Context, *TAB, Out, MCE));
}
What do you think ? Do you consider this to be acceptable ? Or just horrible
?
- MCObjectWriter::Write8 and MCObjectWriter::WriteBytes are designed to
write in a raw_ostream inst...
2010 Apr 16
2
[LLVMdev] Intro to the MC Project
I do have an opinion, but don't have enough time to comment in much depth. The approximate approach I had in mind sounds like what you describe, though, the JITObjectWriter is the core piece, the other pieces probably fall into place as it becomes obvious if they are needed.
It should be pretty straightforward to bring up something which works for running code with no external symbols, if you