[llvm-commits] [lld] r172028 - /lld/trunk/lib/ReaderWriter/ReaderArchive.cpp
Sean Silva
silvas at purdue.edu
Wed Jan 9 18:19:01 PST 2013
On Wed, Jan 9, 2013 at 8:27 PM, Michael J. Spencer
<bigcheesegs at gmail.com> wrote:
> +#include "llvm/ADT/Hashing.h"
> +
> +#include <unordered_map>
> +
> +namespace std {
> + template<>
> + struct hash<llvm::StringRef> {
> + public:
> + size_t operator()(const llvm::StringRef &s) const {
> + using llvm::hash_value;
> + return hash_value(s);
> + }
> + };
> +}
Maybe you should start marking things which can eventually be moved
into LLVM? e.g. with a comment
// CXX11: move this to StringRef.h
That way it will be easy to clean up later.
-- Sean Silva
More information about the llvm-commits
mailing list