aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCCodeView.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-11-24 15:23:06 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-11-24 16:09:44 +0000
commit6c09ea3fdd6fb8001a079bc892aa095e9693b932 (patch)
tree1c803f13b31cbeb2135389f77c82a6f3b5e96480 /llvm/lib/MC/MCCodeView.cpp
parentb9e3f5f864fb1944be60725aca400a9332ac6aa5 (diff)
downloadllvm-6c09ea3fdd6fb8001a079bc892aa095e9693b932.zip
llvm-6c09ea3fdd6fb8001a079bc892aa095e9693b932.tar.gz
llvm-6c09ea3fdd6fb8001a079bc892aa095e9693b932.tar.bz2
[Alignment][NFC] Use Align in MCStreamer::emitValueToAlignment
Differential Revision: https://reviews.llvm.org/D138674
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r--llvm/lib/MC/MCCodeView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index 375d546..99d7e96e 100644
--- a/llvm/lib/MC/MCCodeView.cpp
+++ b/llvm/lib/MC/MCCodeView.cpp
@@ -185,7 +185,7 @@ void CodeViewContext::emitStringTable(MCObjectStreamer &OS) {
InsertedStrTabFragment = true;
}
- OS.emitValueToAlignment(4, 0);
+ OS.emitValueToAlignment(Align(4), 0);
OS.emitLabel(StringEnd);
}
@@ -233,7 +233,7 @@ void CodeViewContext::emitFileChecksums(MCObjectStreamer &OS) {
OS.emitInt8(static_cast<uint8_t>(File.Checksum.size()));
OS.emitInt8(File.ChecksumKind);
OS.emitBytes(toStringRef(File.Checksum));
- OS.emitValueToAlignment(4);
+ OS.emitValueToAlignment(Align(4));
}
OS.emitLabel(FileEnd);