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

Unified Diff: src/IceClFlags.cpp

Issue 1961743002: Subzero: Update for LLVM 3.9 (trunk). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero@master
Patch Set: Remove unnecessary variable Created 4 years, 7 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
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceCompileServer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceClFlags.cpp
diff --git a/src/IceClFlags.cpp b/src/IceClFlags.cpp
index 257c6f13b90c33070e7c3a163f63986c9dcd0129..4982cbf4e9912925d7426772ceb1a36bf4c9a993 100644
--- a/src/IceClFlags.cpp
+++ b/src/IceClFlags.cpp
@@ -163,6 +163,10 @@ template <> struct ToSetterParam<cl::list<Ice::VerboseItem>> {
using ReturnType = Ice::VerboseMask;
};
+template <> struct ToSetterParam<cl::list<std::string>> {
+ using ReturnType = std::vector<std::string>;
+};
+
template <typename T>
typename ToSetterParam<T>::ReturnType toSetterParam(const T &Param) {
return Param;
@@ -181,6 +185,12 @@ toSetterParam(const cl::list<Ice::VerboseItem> &Param) {
return VMask;
}
+template <>
+ToSetterParam<cl::list<std::string>>::ReturnType
+toSetterParam(const cl::list<std::string> &Param) {
+ return *&Param;
+}
+
} // end of anonymous namespace
void ClFlags::getParsedClFlags(ClFlags &OutFlags) {
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceCompileServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698