search for: gettargetstreamer

Displaying 2 results from an estimated 2 matches for "gettargetstreamer".

Did you mean: settargetstreamer
2014 Jun 24
2
[LLVMdev] Linking/archiving bitcodes with module asm
Hello, I'm archiving a number of bitcode files via gold plugin based on LLVM 3.4. When I find a thumbv7 bitcode with a couple of module asms, I get a segfault in ARMAsmParser::parseDirectiveFnStart because getTargetStreamer returns NULL. Frankly, I don't see how this is supposed to work because as far as I understood LTOModule::addAsmGlobalSymbols only creates a RecordStreamer which is then attached to the MCTargetAsmParser, and no TargetStreamer is ever created. The places that explicitly call createAsmStre...
2013 Oct 08
0
[LLVMdev] The new MCTargetStreamer interface
...FooTargetAsmSreamer and FooTargetELFStreamer classes implement the method. The assembly streamer just prints ".bar symbol_name". The object streamer does whatever is needed to implement .bar in the object file. In the assembly printer and parser the target streamer can be used by calling getTargetStreamer and casting it to FooTargetStreamer: MCTargetStreamer &TS = OutStreamer.getTargetStreamer(); FooTargetStreamer &ATS = static_cast<FooTargetStreamer &>(TS); The base classes FooTargetAsmSreamer and FooTargetELFStreamer should *never* be treated differently. Callers should always...