mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Make some non-constant static variables non-static or fully const.
Otherwise we have to emit thread-safe initialization for them. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user