Skip to content

Commit 93de548

Browse files
committed
address comments from Vincent
1 parent 4f932b9 commit 93de548

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

llvm/include/llvm/CodeGenData/CodeGenData.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ void warn(Twine Message, std::string Whence = "", std::string Hint = "");
171171

172172
namespace IndexedCGData {
173173

174-
const uint64_t Magic = 0x81617461646763ff; // "\xffcgdata\x81"
174+
// A signature for data validation, representing "\xffcgdata\x81" in
175+
// little-endian order
176+
const uint64_t Magic = 0x81617461646763ff;
175177

176178
enum CGDataVersion {
177179
// Version 1 is the first version. This version supports the outlined

llvm/test/tools/llvm-cgdata/merge-concat.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# REQUIRES: shell
22
# UNSUPPORTED: system-windows
33

4-
# Merge a binary file (e.g., a linked executable) having concatnated cgdata (__llvm_outline)
4+
# Merge a binary file (e.g., a linked executable) having concatenated cgdata (__llvm_outline)
55

66
RUN: split-file %s %t
77

8-
# Synthesize two set of raw cgdata without the header (24 byte) from the indexed cgdata.
8+
# Synthesize two sets of raw cgdata without the header (24 byte) from the indexed cgdata.
99
# Concatenate them in merge-concat.ll
1010
RUN: llvm-cgdata dump -binary %t/raw-1.cgtext -o %t/raw-1.cgdata
1111
RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n\r\t' | sed 's/[ ]*$//' | sed 's/[ ][ ]*/\\\\/g' > %t/raw-1-bytes.txt

0 commit comments

Comments
 (0)