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:
parent
b1afc0dedc
commit
3b8f63172a
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user