diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-02-11 11:06:55 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-02-11 11:06:55 +0000 |
commit | efcf06f5f21792b83bbbbf9bd562a9470d49ddd4 (patch) | |
tree | 33027dc411f7e0411a4374c177967c2c16def860 /llvm/lib/Bitcode | |
parent | b196055c0cb81232806de39c658ae6d1e7828305 (diff) | |
download | bcm5719-llvm-efcf06f5f21792b83bbbbf9bd562a9470d49ddd4.tar.gz bcm5719-llvm-efcf06f5f21792b83bbbbf9bd562a9470d49ddd4.zip |
Move symbols from the global namespace into (anonymous) namespaces. NFC.
llvm-svn: 294837
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Reader/MetadataLoader.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp index 3baf0599341..603b8141838 100644 --- a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp +++ b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp @@ -567,7 +567,7 @@ public: void shrinkTo(unsigned N) { MetadataList.shrinkTo(N); } }; -Error error(const Twine &Message) { +static Error error(const Twine &Message) { return make_error<StringError>( Message, make_error_code(BitcodeError::CorruptedBitcode)); } diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 1281fca5f69..8e930c01998 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -3739,7 +3739,7 @@ void IndexBitcodeWriter::writeCombinedGlobalValueSummary() { /// Create the "IDENTIFICATION_BLOCK_ID" containing a single string with the /// current llvm version, and a record for the epoch number. -void writeIdentificationBlock(BitstreamWriter &Stream) { +static void writeIdentificationBlock(BitstreamWriter &Stream) { Stream.EnterSubblock(bitc::IDENTIFICATION_BLOCK_ID, 5); // Write the "user readable" string identifying the bitcode producer |