mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Explorer: add trace for InstantiateType (#3041)
Adds trace output for `Interpreter::InstantiateType` method.
This commit is contained in:
@@ -502,6 +502,11 @@ auto Interpreter::EvalAssociatedConstant(
|
||||
auto Interpreter::InstantiateType(Nonnull<const Value*> type,
|
||||
SourceLocation source_loc)
|
||||
-> ErrorOr<Nonnull<const Value*>> {
|
||||
if (trace_stream_->is_enabled()) {
|
||||
trace_stream_->Start() << "instantiating type `" << *type << "` ("
|
||||
<< source_loc << ")\n";
|
||||
}
|
||||
|
||||
switch (type->kind()) {
|
||||
case Value::Kind::VariableType: {
|
||||
CARBON_ASSIGN_OR_RETURN(
|
||||
|
||||
Reference in New Issue
Block a user