diff options
author | Craig Topper <craig.topper@intel.com> | 2020-05-21 15:23:00 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-05-21 15:23:29 -0700 |
commit | f96a7706d9f0afe33ee4a1f55ba7daec926e4ffe (patch) | |
tree | 0dab62b8952d285ab777af31c7dbab680ee84a1d /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | fc937806efd71eb3803b35d0920bb7d76bc3040b (diff) | |
download | llvm-f96a7706d9f0afe33ee4a1f55ba7daec926e4ffe.zip llvm-f96a7706d9f0afe33ee4a1f55ba7daec926e4ffe.tar.gz llvm-f96a7706d9f0afe33ee4a1f55ba7daec926e4ffe.tar.bz2 |
[Target] Use Align in TargetLoweringObjectFile::getSectionForConstant.
Differential Revision: https://reviews.llvm.org/D80363
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index d48efef..bd25660 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -284,10 +284,10 @@ TargetLoweringObjectFile::SectionForGlobal(const GlobalObject *GO, MCSection *TargetLoweringObjectFile::getSectionForJumpTable( const Function &F, const TargetMachine &TM) const { - unsigned Align = 0; + Align Alignment(1); return getSectionForConstant(F.getParent()->getDataLayout(), SectionKind::getReadOnly(), /*C=*/nullptr, - Align); + Alignment); } bool TargetLoweringObjectFile::shouldPutJumpTableInFunctionSection( @@ -309,7 +309,7 @@ bool TargetLoweringObjectFile::shouldPutJumpTableInFunctionSection( /// information, return a section that it should be placed in. MCSection *TargetLoweringObjectFile::getSectionForConstant( const DataLayout &DL, SectionKind Kind, const Constant *C, - unsigned &Align) const { + Align &Alignment) const { if (Kind.isReadOnly() && ReadOnlySection != nullptr) return ReadOnlySection; |