aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2024-01-18 19:44:16 -0800
committerGitHub <noreply@github.com>2024-01-18 19:44:16 -0800
commit82bc33ea3f1a539be50ed46919dc53fc6b685da9 (patch)
tree9094046be79d462bc56700661b38444a5a10ccec /llvm/lib/MC/MCStreamer.cpp
parente81c981fe35483a4b7474e110ff1b5d02bc2cb00 (diff)
downloadllvm-82bc33ea3f1a539be50ed46919dc53fc6b685da9.zip
llvm-82bc33ea3f1a539be50ed46919dc53fc6b685da9.tar.gz
llvm-82bc33ea3f1a539be50ed46919dc53fc6b685da9.tar.bz2
[BOLT] Fix unconditional output of boltedcollection in merge-fdata (#78653)
Fix the bug where merge-fdata unconditionally outputs boltedcollection line, regardless of whether input files have it set. Test Plan: Added bolt/test/X86/merge-fdata-nobat-mode.test which fails without this fix.
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index bc145ae..5738ae2 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -1234,6 +1234,8 @@ void MCStreamer::emitValueToAlignment(Align Alignment, int64_t Value,
unsigned MaxBytesToEmit) {}
void MCStreamer::emitCodeAlignment(Align Alignment, const MCSubtargetInfo *STI,
unsigned MaxBytesToEmit) {}
+void MCStreamer::emitNeverAlignCodeAtEnd(unsigned ByteAlignment,
+ const MCSubtargetInfo &STI) {}
void MCStreamer::emitValueToOffset(const MCExpr *Offset, unsigned char Value,
SMLoc Loc) {}
void MCStreamer::emitBundleAlignMode(Align Alignment) {}