From a19e7c29940ab7bee487543a2238708f4b85de35 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Fri, 13 Sep 2019 16:46:23 +0000 Subject: [PATCH] [Remarks][NFC] Use StringLiteral for magic numbers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371869 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Remarks/BitstreamRemarkContainer.h | 2 +- include/llvm/Remarks/RemarkFormat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Remarks/BitstreamRemarkContainer.h b/include/llvm/Remarks/BitstreamRemarkContainer.h index b8b130fa324..a2282fca04a 100644 --- a/include/llvm/Remarks/BitstreamRemarkContainer.h +++ b/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/include/llvm/Remarks/RemarkFormat.h b/include/llvm/Remarks/RemarkFormat.h index 3cf7279e05c..6dd32b22609 100644 --- a/include/llvm/Remarks/RemarkFormat.h +++ b/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 }; -- 2.40.0