[llvm] 547a507 - TypeSize: remove unused deprecated methods

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 27 09:31:47 PDT 2023


Author: Fangrui Song
Date: 2023-10-27T09:31:42-07:00
New Revision: 547a5073bed9dec25aec29751c036e2fb7d251c2

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

LOG: TypeSize: remove unused deprecated methods

Complete the migration in https://reviews.llvm.org/D141134 .

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 dc096d7cc715439..732757c14a96de5 100644
--- a/llvm/include/llvm/Support/TypeSize.h
+++ b/llvm/include/llvm/Support/TypeSize.h
@@ -16,7 +16,6 @@
 #define LLVM_SUPPORT_TYPESIZE_H
 
 #include "llvm/ADT/ArrayRef.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/raw_ostream.h"
 
@@ -329,10 +328,8 @@ class TypeSize : public details::FixedOrScalableQuantity<TypeSize, uint64_t> {
     return TypeSize(MinimumSize, true);
   }
 
-  LLVM_DEPRECATED("Use getFixedValue() instead", "getFixedValue")
   constexpr ScalarTy getFixedSize() const { return getFixedValue(); }
   
-  LLVM_DEPRECATED("Use getKnownMinValue() instead", "getKnownMinValue")
   constexpr ScalarTy getKnownMinSize() const { return getKnownMinValue(); }
 
   // All code for this class below this point is needed because of the


        


More information about the llvm-commits mailing list