[llvm] a065efa - [llvm][NFC] Remove deprecated DataLayout::getPreferredAlignment functions

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Thu May 6 00:28:12 PDT 2021


Author: Guillaume Chatelet
Date: 2021-05-06T07:28:00Z
New Revision: a065efa302f64f225d9187b49b4dd061b5c58b08

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

LOG: [llvm][NFC] Remove deprecated DataLayout::getPreferredAlignment functions

Differential Revision: https://reviews.llvm.org/D101906

Added: 
    

Modified: 
    llvm/include/llvm/IR/DataLayout.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/DataLayout.h b/llvm/include/llvm/IR/DataLayout.h
index 80bb349d3e287..300f73c12df0d 100644
--- a/llvm/include/llvm/IR/DataLayout.h
+++ b/llvm/include/llvm/IR/DataLayout.h
@@ -589,25 +589,6 @@ class DataLayout {
   ///
   /// This includes an explicitly requested alignment (if the global has one).
   Align getPreferredAlign(const GlobalVariable *GV) const;
-
-  /// Returns the preferred alignment of the specified global.
-  ///
-  /// This includes an explicitly requested alignment (if the global has one).
-  LLVM_ATTRIBUTE_DEPRECATED(
-      inline unsigned getPreferredAlignment(const GlobalVariable *GV) const,
-      "Use getPreferredAlign instead") {
-    return getPreferredAlign(GV).value();
-  }
-
-  /// Returns the preferred alignment of the specified global, returned
-  /// in log form.
-  ///
-  /// This includes an explicitly requested alignment (if the global has one).
-  LLVM_ATTRIBUTE_DEPRECATED(
-      inline unsigned getPreferredAlignmentLog(const GlobalVariable *GV) const,
-      "Inline where needed") {
-    return Log2(getPreferredAlign(GV));
-  }
 };
 
 inline DataLayout *unwrap(LLVMTargetDataRef P) {


        


More information about the llvm-commits mailing list