diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-01 18:09:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-01 18:09:56 +0000 |
commit | 7149aabf8bf7168cadc385fbb35366f6228150bf (patch) | |
tree | 996647a752841c309036620b927fc04b4f89406b /llvm/lib/MC | |
parent | e0ca6e1375cd4c166a1428dff3df4aedf94f404f (diff) | |
download | bcm5719-llvm-7149aabf8bf7168cadc385fbb35366f6228150bf.tar.gz bcm5719-llvm-7149aabf8bf7168cadc385fbb35366f6228150bf.zip |
Make some non-constant static variables non-static or fully const.
Otherwise we have to emit thread-safe initialization for them. NFC.
llvm-svn: 230894
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index 48199058c1f..2abe85fa9ad 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/lib/MC/ELFObjectWriter.cpp @@ -1186,7 +1186,7 @@ getUncompressedData(MCAsmLayout &Layout, static bool prependCompressionHeader(uint64_t Size, SmallVectorImpl<char> &CompressedContents) { - static const StringRef Magic = "ZLIB"; + const StringRef Magic = "ZLIB"; if (Size <= Magic.size() + sizeof(Size) + CompressedContents.size()) return false; if (sys::IsLittleEndianHost) |