Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: tools/gn/toolchain.cc

Issue 2006923004: Add support for user defined "pool" to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tools/gn/functions.cc ('K') | « tools/gn/toolchain.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/toolchain.cc
diff --git a/tools/gn/toolchain.cc b/tools/gn/toolchain.cc
index 14d2bfd159590bb0775d5b081f2ebb42e8f5779e..03c9c59a843ca825be9d91bf84500732dd695b73 100644
--- a/tools/gn/toolchain.cc
+++ b/tools/gn/toolchain.cc
@@ -86,6 +86,11 @@ std::string Toolchain::ToolTypeToName(ToolType type) {
}
}
+Tool* Toolchain::GetTool(ToolType type) {
+ DCHECK(type != TYPE_NONE);
+ return tools_[static_cast<size_t>(type)].get();
+}
+
const Tool* Toolchain::GetTool(ToolType type) const {
DCHECK(type != TYPE_NONE);
return tools_[static_cast<size_t>(type)].get();
« tools/gn/functions.cc ('K') | « tools/gn/toolchain.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698