aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-05-15 15:18:11 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-05-15 15:18:11 +0000
commita65b610bd2f22385e190d3251707eefd8ca5436f (patch)
tree92a8169de78bdf4b4a006189c0cdf6b5a480a824 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentee004bc0a2cbbb31461efb78c25f57a23bb1673b (diff)
downloadllvm-a65b610bd2f22385e190d3251707eefd8ca5436f.zip
llvm-a65b610bd2f22385e190d3251707eefd8ca5436f.tar.gz
llvm-a65b610bd2f22385e190d3251707eefd8ca5436f.tar.bz2
Move helper classes into anonymous namespaces. NFC.
llvm-svn: 269591
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index e69fbe6..050294d 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -37,6 +37,7 @@
#include <map>
using namespace llvm;
+namespace {
/// These are manifest constants used by the bitcode writer. They do not need to
/// be kept in sync with the reader, but need to be consistent within this file.
enum {
@@ -463,6 +464,7 @@ private:
}
std::map<GlobalValue::GUID, unsigned> &valueIds() { return GUIDToValueIdMap; }
};
+} // end anonymous namespace
static unsigned getEncodedCastOpcode(unsigned Opcode) {
switch (Opcode) {