aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2019-09-09 16:47:58 -0300
committerReinUsesLisp <[email protected]>2019-09-09 16:47:58 -0300
commit58c5406436f47baa662396e1ec39b86f47f24067 (patch)
treeffabc6940dd896cec8e80a741ba1a1123d2ecac0 /include
parentbb6a3421d27b19d8caa203cca96f47210a670070 (diff)
downloadsirit-58c5406436f47baa662396e1ec39b86f47f24067.tar.gz
sirit-58c5406436f47baa662396e1ec39b86f47f24067.zip
Revert "Fix declarations hashing"
This reverts commit bb6a3421d27b19d8caa203cca96f47210a670070.
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 71f8699..1a0def9 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -920,15 +920,6 @@ public:
Id OpImageQuerySamples(Id result_type, Id image);
private:
- struct HashOp {
- std::size_t operator()(const std::unique_ptr<Op>& op) const noexcept;
- };
-
- struct EqualOp {
- bool operator()(const std::unique_ptr<Op>& lhs, const std::unique_ptr<Op>& rhs) const
- noexcept;
- };
-
Id AddCode(std::unique_ptr<Op> op);
Id AddCode(spv::Op opcode, std::optional<std::uint32_t> id = {});
@@ -954,7 +945,7 @@ private:
std::vector<std::unique_ptr<Op>> execution_modes;
std::vector<std::unique_ptr<Op>> debug;
std::vector<std::unique_ptr<Op>> annotations;
- std::unordered_set<std::unique_ptr<Op>, HashOp, EqualOp> declarations;
+ std::unordered_set<std::unique_ptr<Op>> declarations;
std::vector<Id> sorted_declarations;
std::vector<Id> global_variables;