[clang] ad0d500 - [clang][bytecode] Remove unused Boolean API (#219867)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 30 21:12:31 PDT 2026
Author: Timm Baeder
Date: 2026-08-31T06:12:27+02:00
New Revision: ad0d5005b2e13ee319cd7c25e924c1bcb6b1a1ec
URL: https://github.com/llvm/llvm-project/commit/ad0d5005b2e13ee319cd7c25e924c1bcb6b1a1ec
DIFF: https://github.com/llvm/llvm-project/commit/ad0d5005b2e13ee319cd7c25e924c1bcb6b1a1ec.diff
LOG: [clang][bytecode] Remove unused Boolean API (#219867)
Added:
Modified:
clang/lib/AST/ByteCode/Boolean.h
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/Boolean.h b/clang/lib/AST/ByteCode/Boolean.h
index dfc6d4916e040..39510ae94b35f 100644
--- a/clang/lib/AST/ByteCode/Boolean.h
+++ b/clang/lib/AST/ByteCode/Boolean.h
@@ -52,8 +52,6 @@ class Boolean final {
}
APValue toAPValue(const ASTContext &) const { return APValue(toAPSInt()); }
- Boolean toUnsigned() const { return *this; }
-
constexpr static unsigned bitWidth() { return 1; }
bool isZero() const { return !V; }
bool isMin() const { return isZero(); }
@@ -111,10 +109,6 @@ class Boolean final {
return Boolean(Value);
}
- static bool inRange(int64_t Value, unsigned NumBits) {
- return Value == 0 || Value == 1;
- }
-
static bool increment(Boolean A, Boolean *R) {
*R = Boolean(true);
return false;
More information about the cfe-commits
mailing list