summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUtilityFunction.cpp
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2014-10-06 23:13:30 +0000
committerTodd Fiala <todd.fiala@gmail.com>2014-10-06 23:13:30 +0000
commita9ae365b2d0fa3e545fc76b819c00c7915d20f02 (patch)
treea70d1cd1b046ee3c5b0b17687e1e23cc63bffd8e /lldb/source/Expression/ClangUtilityFunction.cpp
parentc3e7192fc0fe3c5e40d099853bb5fdfff450ed0d (diff)
downloadbcm5719-llvm-a9ae365b2d0fa3e545fc76b819c00c7915d20f02.tar.gz
bcm5719-llvm-a9ae365b2d0fa3e545fc76b819c00c7915d20f02.zip
Add "target.expr-parser-compiler-args" setting.
This setting contains the following: A list containing all the arguments to be passed to the expression parser compiler. This change also ensures quoted arguments are handled appropriately. See http://reviews.llvm.org/D5472 for more details. Change by Tong Shen. llvm-svn: 219169
Diffstat (limited to 'lldb/source/Expression/ClangUtilityFunction.cpp')
-rw-r--r--lldb/source/Expression/ClangUtilityFunction.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangUtilityFunction.cpp b/lldb/source/Expression/ClangUtilityFunction.cpp
index de5b0c1b03f..72031153bdb 100644
--- a/lldb/source/Expression/ClangUtilityFunction.cpp
+++ b/lldb/source/Expression/ClangUtilityFunction.cpp
@@ -122,7 +122,9 @@ ClangUtilityFunction::Install (Stream &error_stream,
}
const bool generate_debug_info = true;
- ClangExpressionParser parser(exe_ctx.GetBestExecutionContextScope(), *this, generate_debug_info);
+ Args expr_parser_compiler_args;
+ target->GetExprParserCompilerArguments (expr_parser_compiler_args);
+ ClangExpressionParser parser(exe_ctx.GetBestExecutionContextScope(), *this, expr_parser_compiler_args, generate_debug_info);
unsigned num_errors = parser.Parse (error_stream);
OpenPOWER on IntegriCloud