diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-05-03 20:19:39 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-05-03 20:19:39 +0000 |
commit | b78a577179328e66b993fb0b160505b2d9c41886 (patch) | |
tree | 3192c301510fc630a9cc2ebea5bfc9af1570b9e4 /lldb/source/Core/Value.cpp | |
parent | 88fc73d544835b8be16ee64086e306eb6bb2b03e (diff) | |
download | bcm5719-llvm-b78a577179328e66b993fb0b160505b2d9c41886.tar.gz bcm5719-llvm-b78a577179328e66b993fb0b160505b2d9c41886.zip |
Revert "DWARFExpression: Convert file addresses to load addresses early on."
This reverts commit 331462 while investigating bot breakage.
llvm-svn: 331480
Diffstat (limited to 'lldb/source/Core/Value.cpp')
-rw-r--r-- | lldb/source/Core/Value.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lldb/source/Core/Value.cpp b/lldb/source/Core/Value.cpp index facee9abf79..292ba0725ff 100644 --- a/lldb/source/Core/Value.cpp +++ b/lldb/source/Core/Value.cpp @@ -669,28 +669,6 @@ const char *Value::GetContextTypeAsCString(ContextType context_type) { return "???"; } -void Value::ConvertToLoadAddress(SymbolContext sc) { - if (GetValueType() != eValueTypeFileAddress) - return; - - if (!sc.module_sp) - return; - - lldb::addr_t file_addr = GetScalar().ULongLong(LLDB_INVALID_ADDRESS); - if (file_addr == LLDB_INVALID_ADDRESS) - return; - - Address so_addr; - if (!sc.module_sp->ResolveFileAddress(file_addr, so_addr)) - return; - lldb::addr_t load_addr = so_addr.GetLoadAddress(sc.target_sp.get()); - if (load_addr == LLDB_INVALID_ADDRESS) - return; - - SetValueType(Value::eValueTypeLoadAddress); - GetScalar() = load_addr; -} - ValueList::ValueList(const ValueList &rhs) { m_values = rhs.m_values; } const ValueList &ValueList::operator=(const ValueList &rhs) { |