Index: tools/gn/command_refs.cc |
diff --git a/tools/gn/command_refs.cc b/tools/gn/command_refs.cc |
index 64969b9e80dcbddfe9fef4e2da7f929fec2bc5cb..184f9014ae4b23813b32927a8cc92ea26e75468d 100644 |
--- a/tools/gn/command_refs.cc |
+++ b/tools/gn/command_refs.cc |
@@ -33,7 +33,7 @@ typedef std::multimap<const Target*, const Target*> DepMap; |
// Populates the reverse dependency map for the targets in the Setup. |
void FillDepMap(Setup* setup, DepMap* dep_map) { |
- for (auto* target : setup->builder()->GetAllResolvedTargets()) { |
+ for (auto* target : setup->builder().GetAllResolvedTargets()) { |
for (const auto& dep_pair : target->GetDeps(Target::DEPS_ALL)) |
dep_map->insert(std::make_pair(dep_pair.ptr, target)); |
} |
@@ -443,7 +443,7 @@ int RunRefs(const std::vector<std::string>& args) { |
// the output, while for normal targets you don't want to see the inputs, |
// only what refers to them. |
std::vector<const Target*> all_targets = |
- setup->builder()->GetAllResolvedTargets(); |
+ setup->builder().GetAllResolvedTargets(); |
UniqueVector<const Target*> explicit_target_matches; |
for (const auto& file : file_matches) { |
GetTargetsContainingFile(setup, all_targets, file, all_toolchains, |