Skip to content

Commit bcf670b

Browse files
committed
Add some comments.
1 parent ef9f176 commit bcf670b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/BasicBlockSectionsProfileReader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ Error BasicBlockSectionsProfileReader::ReadV1Profile() {
8686
switch (Specifier) {
8787
case '@':
8888
break;
89-
case 'm':
89+
case 'm': // Module name speicifer.
9090
if (Values.size() != 1) {
9191
return createProfileParseError(Twine("invalid module name value: '") +
9292
S + "'");
9393
}
9494
DIFilename = sys::path::remove_leading_dotslash(Values[0]);
9595
continue;
96-
case 'f': {
96+
case 'f': { // Function names specifier.
9797
bool FunctionFound = any_of(Values, [&](StringRef Alias) {
9898
auto It = FunctionNameToDIFilename.find(Alias);
9999
// No match if this function name is not found in this module.
@@ -129,7 +129,7 @@ Error BasicBlockSectionsProfileReader::ReadV1Profile() {
129129
DIFilename = "";
130130
continue;
131131
}
132-
case 'c':
132+
case 'c': // Basic block cluster specifier.
133133
// Skip the profile when we the profile iterator (FI) refers to the
134134
// past-the-end element.
135135
if (FI == ProgramBBClusterInfo.end())

0 commit comments

Comments
 (0)