mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Fight a bit against global initializers. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -58,7 +58,7 @@ private:
|
||||
|
||||
#if LLVM_LIBXML2_ENABLED
|
||||
|
||||
static const std::pair<StringRef, StringRef> MtNsHrefsPrefixes[] = {
|
||||
static constexpr std::pair<StringLiteral, StringLiteral> MtNsHrefsPrefixes[] = {
|
||||
{"urn:schemas-microsoft-com:asm.v1", "ms_asmv1"},
|
||||
{"urn:schemas-microsoft-com:asm.v2", "ms_asmv2"},
|
||||
{"urn:schemas-microsoft-com:asm.v3", "ms_asmv3"},
|
||||
|
||||
@@ -397,7 +397,7 @@ void SectionWriter::visit(const OwnedDataSection &Sec) {
|
||||
llvm::copy(Sec.Data, Out.getBufferStart() + Sec.Offset);
|
||||
}
|
||||
|
||||
static const std::vector<uint8_t> ZlibGnuMagic = {'Z', 'L', 'I', 'B'};
|
||||
static constexpr std::array<uint8_t, 4> ZlibGnuMagic = {'Z', 'L', 'I', 'B'};
|
||||
|
||||
static bool isDataGnuCompressed(ArrayRef<uint8_t> Data) {
|
||||
return Data.size() > ZlibGnuMagic.size() &&
|
||||
|
||||
Reference in New Issue
Block a user