forked from ph7n2ofui/SysyCompiler_Arm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
324 B
16 lines
324 B
#include "LexerAction.h"
|
|
|
|
using namespace antlr4::atn;
|
|
|
|
size_t LexerAction::hashCode() const {
|
|
auto hash = cachedHashCode();
|
|
if (hash == 0) {
|
|
hash = hashCodeImpl();
|
|
if (hash == 0) {
|
|
hash = std::numeric_limits<size_t>::max();
|
|
}
|
|
_hashCode.store(hash, std::memory_order_relaxed);
|
|
}
|
|
return hash;
|
|
}
|