]> granicus.if.org Git - llvm/commitdiff
[Remarks][NFC] Use StringLiteral for magic numbers
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 13 Sep 2019 16:46:23 +0000 (16:46 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 13 Sep 2019 16:46:23 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371869 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Remarks/BitstreamRemarkContainer.h
include/llvm/Remarks/RemarkFormat.h

index b8b130fa324d9fbc9b3fc7f74acfdcb599b55b3b..a2282fca04ab187ea4f4f54924fb12f1db745f39 100644 (file)
@@ -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:
index 3cf7279e05c732c69e829ee1d456dde14c910233..6dd32b2260995c33263f445140711904cf584188 100644 (file)
@@ -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 };