mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 23:01:16 +00:00
Revert r268591
"Allow LanguageRuntimes to return an error if they fail in the course of dynamic type discovery This is not meant to report that a value doesn't have a dynamic type - it is only meant as a mechanism to propagate actual type discovery issues (e.g. malformed type metadata for languages that have such a notion) This information is used by ValueObjectDynamic to set its own m_error, which is a fairly sharp and heavyweight tool to begin with For the time being, this is an architectural improvement but a practical no-op as no existing runtimes are actually setting errors" I need to think about what I want to do in this space more carefully - this attempt might be too heavy of a hammer for the nail I am trying to fix, and I don't want to leave it in while I ponder llvm-svn: 268686
This commit is contained in:
1 parent
5239779465
commit
5f57b6ee0f
16 files changed
+38
-98
No files matched your search
@@ -105,14 +105,10 @@ GetDynamicTypeId(ExecutionContext *exe_ctx, Target *target, ValueObject &in_valu
|
||||
}
|
||||
|
||||
bool
|
||||
JavaLanguageRuntime::GetDynamicTypeAndAddress(ValueObject &in_value,
|
||||
lldb::DynamicValueType use_dynamic,
|
||||
TypeAndOrName &class_type_or_name,
|
||||
Address &dynamic_address,
|
||||
Value::ValueType &value_type,
|
||||
Error &error)
|
||||
JavaLanguageRuntime::GetDynamicTypeAndAddress(ValueObject &in_value, lldb::DynamicValueType use_dynamic,
|
||||
TypeAndOrName &class_type_or_name, Address &dynamic_address,
|
||||
Value::ValueType &value_type)
|
||||
{
|
||||
error.Clear();
|
||||
class_type_or_name.Clear();
|
||||
|
||||
// null references don't have a dynamic type
|
||||
|
||||
Reference in new issue
Block a user