search for: endsourcefileaction

Displaying 1 result from an estimated 1 matches for "endsourcefileaction".

2013 Feb 21
0
[LLVMdev] Missing common linkage
...BitcodeAction : public clang::EmitLLVMOnlyAction { protected: Module*& dstModule; public: inline CompileBitcodeAction(Module*& dstModule, LLVMContext* const context = NULL) : clang::EmitLLVMOnlyAction(context), dstModule(dstModule) {} protected: virtual inline void EndSourceFileAction() { clang::EmitLLVMOnlyAction::EndSourceFileAction(); dstModule = takeModule(); } }; Module* module = NULL; ToolInvocation tool(cmdLine, new CompileBitcodeAction(module, context), fileManager); The command line is set up for C (-x c). I use different ToolInvocation instanc...