From: Francis Visoiu Mistrih Date: Fri, 13 Sep 2019 16:46:23 +0000 (+0000) Subject: [Remarks][NFC] Use StringLiteral for magic numbers X-Git-Tag: llvmorg-11-init~9237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d6fb061cf5a0326b11637ee597addb2e2c230d0;p=platform%2Fupstream%2Fllvm.git [Remarks][NFC] Use StringLiteral for magic numbers llvm-svn: 371869 --- diff --git a/llvm/include/llvm/Remarks/BitstreamRemarkContainer.h b/llvm/include/llvm/Remarks/BitstreamRemarkContainer.h index b8b130f..a2282fc 100644 --- a/llvm/include/llvm/Remarks/BitstreamRemarkContainer.h +++ b/llvm/include/llvm/Remarks/BitstreamRemarkContainer.h @@ -25,7 +25,7 @@ namespace remarks { /// Note: this is different from the version of the remark entry. constexpr uint64_t CurrentContainerVersion = 0; /// The magic number used for identifying remark blocks. -constexpr StringRef ContainerMagic("RMRK", 4); +constexpr StringLiteral ContainerMagic("RMRK"); /// Type of the remark container. /// The remark container has two modes: diff --git a/llvm/include/llvm/Remarks/RemarkFormat.h b/llvm/include/llvm/Remarks/RemarkFormat.h index 3cf7279..6dd32b2 100644 --- a/llvm/include/llvm/Remarks/RemarkFormat.h +++ b/llvm/include/llvm/Remarks/RemarkFormat.h @@ -19,7 +19,7 @@ namespace llvm { namespace remarks { -constexpr StringRef Magic("REMARKS", 7); +constexpr StringLiteral Magic("REMARKS"); /// The format used for serializing/deserializing remarks. enum class Format { Unknown, YAML, YAMLStrTab, Bitstream };