summaryrefslogtreecommitdiff
path: root/src/literal.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-01-05 09:22:02 -0800
committerGitHub <noreply@github.com>2024-01-05 09:22:02 -0800
commitbdafd1116f2fd56ef8a86b3b1a18f3670e4004ed (patch)
tree6a054241e141b1fe0ee96ba82f85085997ba6d9e /src/literal.h
parentd312604d46ff3e1e14228394a2a4536b71483520 (diff)
downloadbinaryen-bdafd1116f2fd56ef8a86b3b1a18f3670e4004ed.tar.gz
binaryen-bdafd1116f2fd56ef8a86b3b1a18f3670e4004ed.tar.bz2
binaryen-bdafd1116f2fd56ef8a86b3b1a18f3670e4004ed.zip
[NFC] Add some const annotations (#6203)
Diffstat (limited to 'src/literal.h')
-rw-r--r--src/literal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/literal.h b/src/literal.h
index b484fc3b8..971cc8b3e 100644
--- a/src/literal.h
+++ b/src/literal.h
@@ -698,7 +698,7 @@ public:
}
Literals(size_t initialSize) : SmallVector(initialSize) {}
- Type getType() {
+ Type getType() const {
if (empty()) {
return Type::none;
}
@@ -711,8 +711,8 @@ public:
}
return Type(types);
}
- bool isNone() { return size() == 0; }
- bool isConcrete() { return size() != 0; }
+ bool isNone() const { return size() == 0; }
+ bool isConcrete() const { return size() != 0; }
};
std::ostream& operator<<(std::ostream& o, wasm::Literal literal);