[llvm] ccc5713 - TypeSize: remove redundant getFixed and getScalable

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 27 00:37:55 PDT 2023


Author: Fangrui Song
Date: 2023-10-27T00:37:38-07:00
New Revision: ccc57132aa07165a7dc0ff8a443d772fd2c450c8

URL: https://github.com/llvm/llvm-project/commit/ccc57132aa07165a7dc0ff8a443d772fd2c450c8
DIFF: https://github.com/llvm/llvm-project/commit/ccc57132aa07165a7dc0ff8a443d772fd2c450c8.diff

LOG: TypeSize: remove redundant getFixed and getScalable

Added: 
    

Modified: 
    llvm/include/llvm/Support/TypeSize.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/TypeSize.h b/llvm/include/llvm/Support/TypeSize.h
index 5c15ed9e4d9bdf0..dc096d7cc715439 100644
--- a/llvm/include/llvm/Support/TypeSize.h
+++ b/llvm/include/llvm/Support/TypeSize.h
@@ -319,12 +319,6 @@ class TypeSize : public details::FixedOrScalableQuantity<TypeSize, uint64_t> {
   constexpr TypeSize(ScalarTy Quantity, bool Scalable)
       : FixedOrScalableQuantity(Quantity, Scalable) {}
 
-  static constexpr TypeSize getFixed(ScalarTy ExactSize) {
-    return TypeSize(ExactSize, false);
-  }
-  static constexpr TypeSize getScalable(ScalarTy MinimumSize) {
-    return TypeSize(MinimumSize, true);
-  }
   static constexpr TypeSize get(ScalarTy Quantity, bool Scalable) {
     return TypeSize(Quantity, Scalable);
   }


        


More information about the llvm-commits mailing list