<div>Hi llvmdev, </div><div><br></div><div>I am still using llvm 2.9. The function addPassesToEmitMC in 3.0 takes a extra parameter to specify the raw stream for the emitter to emit code. However in 2.9, there is no such a parameter. How shall I do if want to pass a raw_stream object?</div>
<div><br></div><div>llvm 2.9</div><div>// addPassesToEmitMC - Add passes to the specified pass manager to get</div><div>/// machine code emitted with the MCJIT. This method returns true if machine</div><div>/// code is not supported. It fills the MCContext Ctx pointer which can be</div>
<div>/// used to build custom MCStreamer.</div><div>///</div><div>bool LLVMTargetMachine::addPassesToEmitMC(PassManagerBase &PM,</div><div> MCContext *&Ctx,</div><div> CodeGenOpt::Level OptLevel,</div>
<div> bool DisableVerify) </div><div><br></div><div>Thanks,</div><div>David</div>