summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionDeclMap.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-06-13 03:30:39 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-06-13 03:30:39 +0000
commit3924d754e59683a3461e05e3c8d57a9d6ff347fb (patch)
tree8c0c185769a21c88dc42297cbb69add855e76342 /lldb/source/Expression/ClangExpressionDeclMap.cpp
parent2cef13cf71de548dc59e12e2699ed89892206d6e (diff)
downloadbcm5719-llvm-3924d754e59683a3461e05e3c8d57a9d6ff347fb.tar.gz
bcm5719-llvm-3924d754e59683a3461e05e3c8d57a9d6ff347fb.zip
Remove unused variables
Address the 'variable set but not used' warning from GCC. In some cases a few additional calls were removed where there should be no visible side effects of the calls (i.e. should not effect any cached state). llvm-svn: 210879
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index 76b5c58b964..2dee8c86fae 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -1502,16 +1502,7 @@ ClangExpressionDeclMap::GetVariableValue (VariableSP &var,
DWARFExpression &var_location_expr = var->LocationExpression();
- lldb::addr_t loclist_base_load_addr = LLDB_INVALID_ADDRESS;
-
Target *target = m_parser_vars->m_exe_ctx.GetTargetPtr();
-
- if (var_location_expr.IsLocationList())
- {
- SymbolContext var_sc;
- var->CalculateSymbolContext (&var_sc);
- loclist_base_load_addr = var_sc.function->GetAddressRange().GetBaseAddress().GetLoadAddress (target);
- }
Error err;
if (var->GetLocationIsConstantValueData())
OpenPOWER on IntegriCloud