diff options
| author | Zachary Turner <zturner@google.com> | 2016-11-12 18:17:36 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-11-12 18:17:36 +0000 |
| commit | 22a2628f18094a4f7c1b40b90ec280739805768b (patch) | |
| tree | 09d126e22c8933f10d7ce5c59a54aab20ee55acf /lldb/source/Core | |
| parent | da6a63db1c9e7ec8674d9efde1bed9b9500a0d19 (diff) | |
| download | bcm5719-llvm-22a2628f18094a4f7c1b40b90ec280739805768b.tar.gz bcm5719-llvm-22a2628f18094a4f7c1b40b90ec280739805768b.zip | |
Make ValueObjectMemory::Create accept StringRefs.
llvm-svn: 286726
Diffstat (limited to 'lldb/source/Core')
| -rw-r--r-- | lldb/source/Core/ValueObjectMemory.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/source/Core/ValueObjectMemory.cpp b/lldb/source/Core/ValueObjectMemory.cpp index d631098243a..86747b84522 100644 --- a/lldb/source/Core/ValueObjectMemory.cpp +++ b/lldb/source/Core/ValueObjectMemory.cpp @@ -33,21 +33,22 @@ using namespace lldb; using namespace lldb_private; ValueObjectSP ValueObjectMemory::Create(ExecutionContextScope *exe_scope, - const char *name, + llvm::StringRef name, const Address &address, lldb::TypeSP &type_sp) { return (new ValueObjectMemory(exe_scope, name, address, type_sp))->GetSP(); } ValueObjectSP ValueObjectMemory::Create(ExecutionContextScope *exe_scope, - const char *name, + llvm::StringRef name, const Address &address, const CompilerType &ast_type) { return (new ValueObjectMemory(exe_scope, name, address, ast_type))->GetSP(); } ValueObjectMemory::ValueObjectMemory(ExecutionContextScope *exe_scope, - const char *name, const Address &address, + llvm::StringRef name, + const Address &address, lldb::TypeSP &type_sp) : ValueObject(exe_scope), m_address(address), m_type_sp(type_sp), m_compiler_type() { @@ -73,7 +74,8 @@ ValueObjectMemory::ValueObjectMemory(ExecutionContextScope *exe_scope, } ValueObjectMemory::ValueObjectMemory(ExecutionContextScope *exe_scope, - const char *name, const Address &address, + llvm::StringRef name, + const Address &address, const CompilerType &ast_type) : ValueObject(exe_scope), m_address(address), m_type_sp(), m_compiler_type(ast_type) { |

