[llvm][NFC] Remove deprecated DataLayout::getPreferredAlignment functions
Differential Revision: https://reviews.llvm.org/D101906
This commit is contained in:
parent
b4795544d4
commit
a065efa302
|
|
@ -589,25 +589,6 @@ public:
|
||||||
///
|
///
|
||||||
/// This includes an explicitly requested alignment (if the global has one).
|
/// This includes an explicitly requested alignment (if the global has one).
|
||||||
Align getPreferredAlign(const GlobalVariable *GV) const;
|
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) {
|
inline DataLayout *unwrap(LLVMTargetDataRef P) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue