projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64af621
)
cpu: Make hash struct instead of class to please clang
author
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 30 May 2013 16:53:52 +0000
(12:53 -0400)
committer
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 30 May 2013 16:53:52 +0000
(12:53 -0400)
This patch changes the type of the hash function for BasicBlockRanges
to match the original definition of the templatized type. Without
this, clang raises a warning and combined with the "-Werror" flag this
causes compilation to fail.
src/cpu/simple/atomic.hh
patch
|
blob
|
history
diff --git
a/src/cpu/simple/atomic.hh
b/src/cpu/simple/atomic.hh
index 5a9275a773dab9672690dd6c0afa2527e9d05f2e..7366213f86f21c21ab9457c06c31f99602171e7b 100644
(file)
--- a/
src/cpu/simple/atomic.hh
+++ b/
src/cpu/simple/atomic.hh
@@
-58,7
+58,7
@@
typedef std::pair<Addr, Addr> BasicBlockRange;
/** Overload hash function for BasicBlockRange type */
__hash_namespace_begin
template <>
-
class
hash<BasicBlockRange>
+
struct
hash<BasicBlockRange>
{
public:
size_t operator()(const BasicBlockRange &bb) const {