[lldb-dev] using clang::CodeGenOptions::EmitDeclMetadata

Greg Clayton gclayton at apple.com
Wed Jul 27 11:39:16 PDT 2011

We typically enable a certain set of options by default with our expression parser by setting the hard coded option manually. See the "ClangExpressionParser::ClangExpressionParser(...)" constructor functions. If you look at the current sources we currently enable this:

238    // Set CodeGen options
239    m_compiler->getCodeGenOpts().EmitDeclMetadata = true;
240    m_compiler->getCodeGenOpts().InstrumentFunctions = false;

On Jul 26, 2011, at 7:18 AM, ret val wrote:

> Hi
> I'm working with LLVM/Clang and I'm trying to use the clang::CodeGenOptions::EmitDeclMetadata feature. There really arnt docs for anything like this so thanks to lldb/Expression/ClangExpressionParser.cpp I now know how to enable this feature. Can anyone point me to a usage of this? I'm not entirely sure how it should work and nothing stood out to me.
> Thanks
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

More information about the lldb-dev mailing list