Index: tools/gn/command_refs.cc |
diff --git a/tools/gn/command_refs.cc b/tools/gn/command_refs.cc |
index 014d7e8996dc08ec62b598a99fc06b3141a081cc..56156deb35ae49b537b347c07f086d6a6f4f4ffb 100644 |
--- a/tools/gn/command_refs.cc |
+++ b/tools/gn/command_refs.cc |
@@ -32,7 +32,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)); |
} |
@@ -436,7 +436,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, |