[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)
llvm-svn: 371869

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

index b8b130f..a2282fc 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 3cf7279..6dd32b2 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 };