diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2019-09-11 13:37:35 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2019-09-11 13:37:35 +0000 |
commit | 97264366fbad7105e55c770b5bb4c83f135334f0 (patch) | |
tree | b18473b2eb5aaffd608ddd9f0765443e953510f1 /llvm/lib/CodeGen/AsmPrinter/WinException.cpp | |
parent | 3183466aa60442f099f52a004b5ebe81cf5a5eb0 (diff) | |
download | llvm-97264366fbad7105e55c770b5bb4c83f135334f0.zip llvm-97264366fbad7105e55c770b5bb4c83f135334f0.tar.gz llvm-97264366fbad7105e55c770b5bb4c83f135334f0.tar.bz2 |
[Alignment][NFC] use llvm::Align for AsmPrinter::EmitAlignment
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: dschuff, sdardis, nemanjai, hiraditya, kbarton, jrtc27, MaskRay, atanasyan, jsji, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67443
llvm-svn: 371616
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/WinException.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp index 4f56177..155e91c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp @@ -203,8 +203,8 @@ void WinException::beginFunclet(const MachineBasicBlock &MBB, // We want our funclet's entry point to be aligned such that no nops will be // present after the label. - Asm->EmitAlignment( - Log2(std::max(Asm->MF->getAlignment(), MBB.getAlignment())), &F); + Asm->EmitAlignment(std::max(Asm->MF->getAlignment(), MBB.getAlignment()), + &F); // Now that we've emitted the alignment directive, point at our funclet. Asm->OutStreamer->EmitLabel(Sym); |