diff options
author | Fangrui Song <i@maskray.me> | 2022-01-31 16:46:11 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-01-31 16:46:11 -0800 |
commit | 7aaf024dac719d6cc73e15074ec8c9ad804229ad (patch) | |
tree | d17975319dbe50474ddd3eff6a54c9e0e0ef1d69 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 85dfe19b36ba6e9657612e072c9183ce168fdbbc (diff) | |
download | llvm-7aaf024dac719d6cc73e15074ec8c9ad804229ad.zip llvm-7aaf024dac719d6cc73e15074ec8c9ad804229ad.tar.gz llvm-7aaf024dac719d6cc73e15074ec8c9ad804229ad.tar.bz2 |
[BitcodeWriter] Fix cases of some functions
`WriteIndexToFile` is used by external projects so I do not touch it.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index eb4e09e..4bba0b3 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -4669,7 +4669,7 @@ void IndexBitcodeWriter::write() { // where it will be written in a new bitcode block. This is used when // writing the combined index file for ThinLTO. When writing a subset of the // index for a distributed backend, provide a \p ModuleToSummariesForIndex map. -void llvm::WriteIndexToFile( +void llvm::writeIndexToFile( const ModuleSummaryIndex &Index, raw_ostream &Out, const std::map<std::string, GVSummaryMapTy> *ModuleToSummariesForIndex) { SmallVector<char, 0> Buffer; @@ -4829,7 +4829,7 @@ void BitcodeWriter::writeThinLinkBitcode(const Module &M, // Write the specified thin link bitcode file to the given raw output stream, // where it will be written in a new bitcode block. This is used when // writing the per-module index file for ThinLTO. -void llvm::WriteThinLinkBitcodeToFile(const Module &M, raw_ostream &Out, +void llvm::writeThinLinkBitcodeToFile(const Module &M, raw_ostream &Out, const ModuleSummaryIndex &Index, const ModuleHash &ModHash) { SmallVector<char, 0> Buffer; @@ -4881,7 +4881,7 @@ static const char *getSectionNameForCommandline(const Triple &T) { llvm_unreachable("Unimplemented ObjectFormatType"); } -void llvm::EmbedBitcodeInModule(llvm::Module &M, llvm::MemoryBufferRef Buf, +void llvm::embedBitcodeInModule(llvm::Module &M, llvm::MemoryBufferRef Buf, bool EmbedBitcode, bool EmbedCmdline, const std::vector<uint8_t> &CmdArgs) { // Save llvm.compiler.used and remove it. |