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); |