forked from OSchip/llvm-project
[lldb][NFC] Simplify return in MaybeHandleVariable
This function anyway returns true, no need to do this extra work. llvm-svn: 368309
This commit is contained in:
parent
eb7a553db8
commit
0e5eef5c8f
|
@ -1387,15 +1387,10 @@ bool IRForTarget::MaybeHandleVariable(Value *llvm_value_ptr) {
|
|||
PrintType(value_type).c_str(), *value_size, value_alignment);
|
||||
}
|
||||
|
||||
if (named_decl &&
|
||||
!m_decl_map->AddValueToStruct(
|
||||
named_decl, lldb_private::ConstString(name.c_str()), llvm_value_ptr,
|
||||
*value_size, value_alignment)) {
|
||||
if (!global_variable->hasExternalLinkage())
|
||||
return true;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
if (named_decl)
|
||||
m_decl_map->AddValueToStruct(
|
||||
named_decl, lldb_private::ConstString(name.c_str()), llvm_value_ptr,
|
||||
*value_size, value_alignment);
|
||||
} else if (dyn_cast<llvm::Function>(llvm_value_ptr)) {
|
||||
if (log)
|
||||
LLDB_LOGF(log, "Function pointers aren't handled right now");
|
||||
|
|
Loading…
Reference in New Issue