Skip to content

Commit 707e610

Browse files
committed
Consolidate MemoryProfile cl declaration into headers
1 parent d76fca4 commit 707e610

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

llvm/include/llvm/Analysis/ProfileSummaryInfo.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
#include "llvm/IR/PassManager.h"
2222
#include "llvm/IR/ProfileSummary.h"
2323
#include "llvm/Pass.h"
24+
#include "llvm/Support/CommandLine.h"
2425
#include <memory>
2526
#include <optional>
2627

28+
LLVM_FUNC_ABI extern llvm::cl::opt<bool> ScalePartialSampleProfileWorkingSetSize;
29+
2730
namespace llvm {
2831
class BasicBlock;
2932
class CallBase;

llvm/lib/Analysis/ModuleSummaryAnalysis.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ static cl::opt<std::string> ModuleSummaryDotFile(
8080
"module-summary-dot-file", cl::Hidden, cl::value_desc("filename"),
8181
cl::desc("File to emit dot graph of new summary into"));
8282

83-
extern cl::opt<bool> ScalePartialSampleProfileWorkingSetSize;
84-
8583
// Walk through the operands of a given User via worklist iteration and populate
8684
// the set of GlobalValue references encountered. Invoked either on an
8785
// Instruction or a GlobalVariable (which walks its initializer).

llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
#include "llvm/Support/raw_ostream.h"
2525
#include "gtest/gtest.h"
2626

27-
extern llvm::cl::opt<bool> ScalePartialSampleProfileWorkingSetSize;
28-
2927
namespace llvm {
3028
namespace {
3129

0 commit comments

Comments
 (0)