summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-13 03:29:46 +0000
committerZachary Turner <zturner@google.com>2016-11-13 03:29:46 +0000
commitaa5611f56df92ca78df874a3b751f906044460c1 (patch)
tree2ea0cd20f0ff488617c617e0c8edc130304b79d6 /lldb/source/DataFormatters
parent7a120c8b3df60a5da382f8f7baeaccdfa928bd5b (diff)
downloadbcm5719-llvm-aa5611f56df92ca78df874a3b751f906044460c1.tar.gz
bcm5719-llvm-aa5611f56df92ca78df874a3b751f906044460c1.zip
Change ValueObject creation functions to take StringRefs.
llvm-svn: 286744
Diffstat (limited to 'lldb/source/DataFormatters')
-rw-r--r--lldb/source/DataFormatters/TypeSynthetic.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/DataFormatters/TypeSynthetic.cpp b/lldb/source/DataFormatters/TypeSynthetic.cpp
index 7bfc8794e5c..0f7bd9aa795 100644
--- a/lldb/source/DataFormatters/TypeSynthetic.cpp
+++ b/lldb/source/DataFormatters/TypeSynthetic.cpp
@@ -101,7 +101,8 @@ std::string CXXSyntheticChildren::GetDescription() {
}
lldb::ValueObjectSP SyntheticChildrenFrontEnd::CreateValueObjectFromExpression(
- const char *name, const char *expression, const ExecutionContext &exe_ctx) {
+ llvm::StringRef name, llvm::StringRef expression,
+ const ExecutionContext &exe_ctx) {
ValueObjectSP valobj_sp(
ValueObject::CreateValueObjectFromExpression(name, expression, exe_ctx));
if (valobj_sp)
@@ -110,7 +111,7 @@ lldb::ValueObjectSP SyntheticChildrenFrontEnd::CreateValueObjectFromExpression(
}
lldb::ValueObjectSP SyntheticChildrenFrontEnd::CreateValueObjectFromAddress(
- const char *name, uint64_t address, const ExecutionContext &exe_ctx,
+ llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx,
CompilerType type) {
ValueObjectSP valobj_sp(
ValueObject::CreateValueObjectFromAddress(name, address, exe_ctx, type));
@@ -120,7 +121,7 @@ lldb::ValueObjectSP SyntheticChildrenFrontEnd::CreateValueObjectFromAddress(
}
lldb::ValueObjectSP SyntheticChildrenFrontEnd::CreateValueObjectFromData(
- const char *name, const DataExtractor &data,
+ llvm::StringRef name, const DataExtractor &data,
const ExecutionContext &exe_ctx, CompilerType type) {
ValueObjectSP valobj_sp(
ValueObject::CreateValueObjectFromData(name, data, exe_ctx, type));
OpenPOWER on IntegriCloud