summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2019-03-06 22:43:25 +0000
committerJim Ingham <jingham@apple.com>2019-03-06 22:43:25 +0000
commitea401ec7f402c56cb403c00ae0a7b79b285a0fb8 (patch)
tree7471044e8c9dbd6559c58e3f554f7e0a71599927 /lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
parent2157f57d2dd9345f1854b2809931ae4d81578b3e (diff)
downloadbcm5719-llvm-ea401ec7f402c56cb403c00ae0a7b79b285a0fb8.tar.gz
bcm5719-llvm-ea401ec7f402c56cb403c00ae0a7b79b285a0fb8.zip
Factor the clang specific parts of ExpressionSourceCode.{h,cpp} into the clang plugin.
NFC Differential Revision: https://reviews.llvm.org/D59040 llvm-svn: 355560
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
index c15bfa5e421..e1d1fdd757a 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
@@ -9,6 +9,7 @@
#include "ClangUtilityFunction.h"
#include "ClangExpressionDeclMap.h"
#include "ClangExpressionParser.h"
+#include "ClangExpressionSourceCode.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
@@ -18,7 +19,6 @@
#include "lldb/Core/Module.h"
#include "lldb/Core/StreamFile.h"
-#include "lldb/Expression/ExpressionSourceCode.h"
#include "lldb/Expression/IRExecutionUnit.h"
#include "lldb/Host/Host.h"
#include "lldb/Target/ExecutionContext.h"
@@ -40,7 +40,11 @@ using namespace lldb_private;
//------------------------------------------------------------------
ClangUtilityFunction::ClangUtilityFunction(ExecutionContextScope &exe_scope,
const char *text, const char *name)
- : UtilityFunction(exe_scope, text, name) {}
+ : UtilityFunction(exe_scope, text, name) {
+ m_function_text.assign(ClangExpressionSourceCode::g_expression_prefix);
+ if (text && text[0])
+ m_function_text.append(text);
+}
ClangUtilityFunction::~ClangUtilityFunction() {}
OpenPOWER on IntegriCloud