Skip to content

Gardening: [IRGen] Add a namespace around a file-local class. NFC. #5086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/IRGen/IRGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ void swift::performLLVMOptimizations(IRGenOptions &Opts, llvm::Module *Module,
ModulePasses.run(*Module);
}

namespace {
/// An output stream which calculates the MD5 hash of the streamed data.
class MD5Stream : public llvm::raw_ostream {
private:
Expand All @@ -269,6 +270,7 @@ class MD5Stream : public llvm::raw_ostream {
Hash.final(Result);
}
};
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// end anonymous namespace

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yeah, I didn't think about it because it's such a short class, but you're right.


/// Computes the MD5 hash of the llvm \p Module including the compiler version
/// and options which influence the compilation.
Expand Down