1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

Fight a bit against global initializers. NFC.

llvm-svn: 369695
This commit is contained in:
Benjamin Kramer 2019-08-22 19:43:27 +00:00
parent b1afc0dedc
commit 3b8f63172a
2 changed files with 2 additions and 2 deletions

View File

@ -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"},

View File

@ -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() &&