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

Unified Diff: src/IceCompiler.cpp

Issue 1161353002: Subzero: Remove a compile-time warning. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCompiler.cpp
diff --git a/src/IceCompiler.cpp b/src/IceCompiler.cpp
index 0ef2ffd62014c42bb445f4c1bedebb11e38e4804..da9172cbcc86a7b9a529d829e6fc39f1a9bceeb9 100644
--- a/src/IceCompiler.cpp
+++ b/src/IceCompiler.cpp
@@ -46,7 +46,7 @@ struct {
// Validates values of build attributes. Prints them to Stream if
// Stream is non-null.
-void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) {
+void validateAndGenerateBuildAttributes(Ostream *Stream) {
// List the supported targets.
if (Stream) {
#define SUBZERO_TARGET(TARGET) *Stream << "target_" #TARGET << "\n";
@@ -80,8 +80,7 @@ void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) {
void Compiler::run(const Ice::ClFlagsExtra &ExtraFlags, GlobalContext &Ctx,
std::unique_ptr<llvm::DataStreamer> &&InputStream) {
- ValidateAndGenerateBuildAttributes(
- Ctx.getFlags(),
+ validateAndGenerateBuildAttributes(
ExtraFlags.getGenerateBuildAtts() ? &Ctx.getStrDump() : nullptr);
if (ExtraFlags.getGenerateBuildAtts())
return Ctx.getErrorStatus()->assign(EC_None);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698