diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2018-08-30 20:56:58 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2018-08-30 20:56:58 +0000 |
| commit | d424c2a8a128e471c882aa001db6d198762657ae (patch) | |
| tree | 6433af1c479ce336eab19c5f10765cc84bc0aa09 /lldb/source/Plugins/ExpressionParser | |
| parent | 40d05cc11e4307fe2b530ddbb386ad691459b123 (diff) | |
| download | llvm-d424c2a8a128e471c882aa001db6d198762657ae.tar.gz llvm-d424c2a8a128e471c882aa001db6d198762657ae.tar.bz2 llvm-d424c2a8a128e471c882aa001db6d198762657ae.zip | |
Move NoBuiltin=true closer to the other LangOpts code [NFC]
llvm-svn: 341121
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp index 64df1fd894ba..80d04c1e9730 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp @@ -455,6 +455,10 @@ ClangExpressionParser::ClangExpressionParser(ExecutionContextScope *exe_scope, false; // Debuggers get universal access m_compiler->getLangOpts().DollarIdents = true; // $ indicates a persistent variable name + // We enable all builtin functions beside the builtins from libc/libm (e.g. + // 'fopen'). Those libc functions are already correctly handled by LLDB, and + // additionally enabling them as expandable builtins is breaking Clang. + m_compiler->getLangOpts().NoBuiltin = true; // Set CodeGen options m_compiler->getCodeGenOpts().EmitDeclMetadata = true; @@ -510,10 +514,6 @@ ClangExpressionParser::ClangExpressionParser(ExecutionContextScope *exe_scope, // 8. Most of this we get from the CompilerInstance, but we also want to give // the context an ExternalASTSource. - // We enable all builtin functions beside the builtins from libc/libm (e.g. - // 'fopen'). Those libc functions are already correctly handled by LLDB, and - // additionally enabling them as expandable builtins is breaking Clang. - m_compiler->getLangOpts().NoBuiltin = true; auto &PP = m_compiler->getPreprocessor(); auto &builtin_context = PP.getBuiltinInfo(); |
