[ThinLTO] Fix .llvmcmd emission
authorMircea Trofin <mtrofin@google.com>
Wed, 28 Oct 2020 00:22:30 +0000 (17:22 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 29 Oct 2020 00:45:30 +0000 (17:45 -0700)
commit735ab4be35695df9f9da7ae8b584cec28eabf1fe
treed117b52023c90df2a57730d4e1f605adcc92de12
parent77973f8dee6d4d6f1b7c2a026249c1f7068f267b
[ThinLTO] Fix .llvmcmd emission

llvm::EmbedBitcodeInModule needs (what used to be called) EmbedMarker
set, in order to emit .llvmcmd. EmbedMarker is really about embedding the
command line, so renamed the parameter accordingly, too.

This was not caught at test because the check-prefix was incorrect, but
FileCheck does not report that when multiple prefixes are provided. A
separate patch will address that.

Differential Revision: https://reviews.llvm.org/D90278
clang/test/CodeGen/thinlto_embed_bitcode.ll
llvm/include/llvm/Bitcode/BitcodeWriter.h
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/LTO/LTOBackend.cpp