[clang][Interp][NFC] Remove unused functions
authorTimm Bäder <tbaeder@redhat.com>
Tue, 17 Jan 2023 08:07:48 +0000 (09:07 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 19 Jan 2023 08:22:57 +0000 (09:22 +0100)
clang/lib/AST/Interp/ByteCodeExprGen.h

index 4e4f2ee..a873631 100644 (file)
@@ -106,18 +106,6 @@ protected:
   // 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 @@ protected:
     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)) {