From db7a1ed9a22fadacfa651e88d0f75f365d44af9a Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Tue, 31 Oct 2023 10:53:45 -0400 Subject: Revert "[Profile] Refactor profile correlation. (#70712)" This reverts commit 4b383d0af93136b80841fc140da0823dfc441dd4. --- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp') diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index cf4983a..f3ba38081 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -57,7 +57,6 @@ #include "llvm/MC/MCValue.h" #include "llvm/MC/SectionKind.h" #include "llvm/ProfileData/InstrProf.h" -#include "llvm/ProfileData/InstrProfCorrelator.h" #include "llvm/Support/Base64.h" #include "llvm/Support/Casting.h" #include "llvm/Support/CodeGen.h" @@ -72,24 +71,6 @@ using namespace llvm; using namespace dwarf; -namespace llvm { -// Deprecated. Use -profile-correlate=debug-info. -cl::opt DebugInfoCorrelate( - "debug-info-correlate", - cl::desc("Use debug info to correlate profiles (Deprecated). Use " - "-profile-correlate=debug-info instead."), - cl::init(false)); - -cl::opt ProfileCorrelate( - "profile-correlate", - cl::desc("Use debug info or binary file to correlate profiles."), - cl::init(InstrProfCorrelator::NONE), - cl::values(clEnumValN(InstrProfCorrelator::NONE, "", - "No profile correlation"), - clEnumValN(InstrProfCorrelator::DEBUG_INFO, "debug-info", - "Use debug info to correlate"))); -} // namespace llvm - static cl::opt JumpTableInFunctionSection( "jumptable-in-function-section", cl::Hidden, cl::init(false), cl::desc("Putting Jump Table in function section")); -- cgit v1.1