Skip to content

Commit 5f70ed5

Browse files
authored
[nfc] Small fixups (coding style) post- PR llvm#129626 (llvm#129935)
1 parent 1df59b3 commit 5f70ed5

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

llvm/include/llvm/ProfileData/PGOCtxProfReader.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,16 @@ class PGOCtxProfileReader final {
186186
BitstreamCursor Cursor;
187187
Expected<BitstreamEntry> advance();
188188
Error readMetadata();
189-
Error wrongValue(const Twine &);
190-
Error unsupported(const Twine &);
189+
Error wrongValue(const Twine &Msg);
190+
Error unsupported(const Twine &Msg);
191191

192192
Expected<std::pair<std::optional<uint32_t>, PGOCtxProfContext>>
193193
readProfile(PGOCtxProfileBlockIDs Kind);
194194

195195
bool canEnterBlockWithID(PGOCtxProfileBlockIDs ID);
196196
Error enterBlockWithID(PGOCtxProfileBlockIDs ID);
197197

198-
Error loadContexts(CtxProfContextualProfiles &);
198+
Error loadContexts(CtxProfContextualProfiles &P);
199199

200200
public:
201201
PGOCtxProfileReader(StringRef Buffer)
@@ -205,6 +205,6 @@ class PGOCtxProfileReader final {
205205
Expected<PGOCtxProfile> loadProfiles();
206206
};
207207

208-
void convertCtxProfToYaml(raw_ostream &OS, const PGOCtxProfile &);
208+
void convertCtxProfToYaml(raw_ostream &OS, const PGOCtxProfile &Profile);
209209
} // namespace llvm
210210
#endif

llvm/include/llvm/ProfileData/PGOCtxProfWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enum PGOCtxProfileBlockIDs {
6262
/// like value profiling - which would appear as additional records. For
6363
/// example, value profiling would produce a new record with a new record ID,
6464
/// containing the profiled values (much like the counters)
65-
class PGOCtxProfileWriter : public ctx_profile::ProfileWriter {
65+
class PGOCtxProfileWriter final : public ctx_profile::ProfileWriter {
6666
enum class EmptyContextCriteria { None, EntryIsZero, AllAreZero };
6767

6868
BitstreamWriter Writer;

llvm/lib/ProfileData/PGOCtxProfReader.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,14 @@ void toYaml(yaml::Output &Out, const PGOCtxProfContext &Ctx) {
277277

278278
} // namespace
279279

280-
void llvm::convertCtxProfToYaml(raw_ostream &OS,
281-
const PGOCtxProfile &Profiles) {
280+
void llvm::convertCtxProfToYaml(raw_ostream &OS, const PGOCtxProfile &Profile) {
282281
yaml::Output Out(OS);
283282
void *SaveInfo = nullptr;
284283
bool UseDefault = false;
285284
Out.beginMapping();
286-
if (!Profiles.Contexts.empty()) {
285+
if (!Profile.Contexts.empty()) {
287286
Out.preflightKey("Contexts", false, false, UseDefault, SaveInfo);
288-
toYaml(Out, Profiles.Contexts);
287+
toYaml(Out, Profile.Contexts);
289288
Out.postflightKey(nullptr);
290289
}
291290
Out.endMapping();

0 commit comments

Comments
 (0)