Skip to content

Commit 296c0c4

Browse files
committed
Address comments
1 parent 01c15f2 commit 296c0c4

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

llvm/include/llvm/Transforms/Instrumentation/MemProfInstrumentation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ class ModuleMemProfilerPass : public PassInfoMixin<ModuleMemProfilerPass> {
4444

4545
} // namespace llvm
4646

47-
#endif
47+
#endif

llvm/include/llvm/Transforms/Instrumentation/MemProfUse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ computeUndriftMap(Module &M, IndexedInstrProfReader *MemProfReader,
6666
} // namespace memprof
6767
} // namespace llvm
6868

69-
#endif
69+
#endif

llvm/lib/Transforms/Instrumentation/MemProfInstrumentation.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//===- MemProfInstrumentation.cpp - memory allocation and access profiler
2-
// instrumentation ------------===//
1+
//===- MemProfInstrumentation.cpp - memory alloc and access instrumentation ==//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
54
// See https://llvm.org/LICENSE.txt for license information.
@@ -35,7 +34,6 @@
3534
#include "llvm/IR/Value.h"
3635
#include "llvm/ProfileData/InstrProf.h"
3736
#include "llvm/ProfileData/MemProf.h"
38-
#include "llvm/ProfileData/MemProfCommon.h"
3937
#include "llvm/Support/CommandLine.h"
4038
#include "llvm/Support/Debug.h"
4139
#include "llvm/TargetParser/Triple.h"
@@ -655,4 +653,4 @@ bool MemProfiler::instrumentFunction(Function &F) {
655653
<< F << "\n");
656654

657655
return FunctionModified;
658-
}
656+
}

llvm/lib/Transforms/Instrumentation/MemProfUse.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ namespace llvm {
4343
extern cl::opt<bool> PGOWarnMissing;
4444
extern cl::opt<bool> NoPGOWarnMismatch;
4545
extern cl::opt<bool> NoPGOWarnMismatchComdatWeak;
46-
extern cl::opt<bool> MemProfReportHintedSizes;
47-
extern cl::opt<unsigned> MinClonedColdBytePercent;
48-
extern cl::opt<unsigned> MinCallsiteColdBytePercent;
4946
} // namespace llvm
5047

5148
// By default disable matching of allocation profiles onto operator new that
@@ -739,4 +736,4 @@ PreservedAnalyses MemProfUsePass::run(Module &M, ModuleAnalysisManager &AM) {
739736
}
740737

741738
return PreservedAnalyses::none();
742-
}
739+
}

0 commit comments

Comments
 (0)