[clang] 741cb06 - [clang][Interp][NFC] Remove unused functions
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 19 00:24:18 PST 2023
Author: Timm Bäder
Date: 2023-01-19T09:22:57+01:00
New Revision: 741cb06cab5f3943c8037cfec89fc8663d6e4ae6
URL: https://github.com/llvm/llvm-project/commit/741cb06cab5f3943c8037cfec89fc8663d6e4ae6
DIFF: https://github.com/llvm/llvm-project/commit/741cb06cab5f3943c8037cfec89fc8663d6e4ae6.diff
LOG: [clang][Interp][NFC] Remove unused functions
Added:
Modified:
clang/lib/AST/Interp/ByteCodeExprGen.h
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.h b/clang/lib/AST/Interp/ByteCodeExprGen.h
index 4e4f2eecd172e..a8736314c01d0 100644
--- a/clang/lib/AST/Interp/ByteCodeExprGen.h
+++ b/clang/lib/AST/Interp/ByteCodeExprGen.h
@@ -106,18 +106,6 @@ class ByteCodeExprGen : public ConstStmtVisitor<ByteCodeExprGen<Emitter>, bool>,
// If the function does not exist yet, it is compiled.
const Function *getFunction(const FunctionDecl *FD);
- /// Returns the size int bits of an integer.
- unsigned getIntWidth(QualType Ty) {
- auto &ASTContext = Ctx.getASTContext();
- return ASTContext.getIntWidth(Ty);
- }
-
- /// Returns the value of CHAR_BIT.
- unsigned getCharBit() const {
- auto &ASTContext = Ctx.getASTContext();
- return ASTContext.getTargetInfo().getCharWidth();
- }
-
/// Classifies a type.
std::optional<PrimType> classify(const Expr *E) const {
return E->isGLValue() ? PT_Ptr : classify(E->getType());
@@ -126,11 +114,6 @@ class ByteCodeExprGen : public ConstStmtVisitor<ByteCodeExprGen<Emitter>, bool>,
return Ctx.classify(Ty);
}
- /// Checks if a pointer needs adjustment.
- bool needsAdjust(QualType Ty) const {
- return true;
- }
-
/// Classifies a known primitive type
PrimType classifyPrim(QualType Ty) const {
if (auto T = classify(Ty)) {
More information about the cfe-commits
mailing list