summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-11 13:37:35 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-11 13:37:35 +0000
commit97264366fbad7105e55c770b5bb4c83f135334f0 (patch)
treeb18473b2eb5aaffd608ddd9f0765443e953510f1 /llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp
parent3183466aa60442f099f52a004b5ebe81cf5a5eb0 (diff)
downloadbcm5719-llvm-97264366fbad7105e55c770b5bb4c83f135334f0.tar.gz
bcm5719-llvm-97264366fbad7105e55c770b5bb4c83f135334f0.zip
[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/ErlangGCPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp
index 39392b79e96..aac08041d63 100644
--- a/llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp
@@ -72,7 +72,7 @@ void ErlangGCPrinter::finishAssembly(Module &M, GCModuleInfo &Info,
**/
// Align to address width.
- AP.EmitAlignment(IntPtrSize == 4 ? 2 : 3);
+ AP.EmitAlignment(IntPtrSize == 4 ? llvm::Align(4) : llvm::Align(8));
// Emit PointCount.
OS.AddComment("safe point count");
OpenPOWER on IntegriCloud