[llvm-driver] Remove llvm-profdata from the driver (#162191)

llvm-profdata uses cl tool for command line parsing which declares
global options which clash in a multicall driver build. As a result
operations such as `llvm-profdata --help` prints options which are
unrelated to llvm-profdata when built in multicall mode.
This commit is contained in:
Prabhu Rajasekaran
2025-10-06 20:59:26 -07:00
committed by GitHub
parent e706a30ad5
commit 3f52eefcc2
2 changed files with 2 additions and 8 deletions

View File

@@ -10,9 +10,6 @@ add_llvm_tool(llvm-profdata
DEPENDS
intrinsics_gen
GENERATE_DRIVER
)
if(NOT LLVM_TOOL_LLVM_DRIVER_BUILD)
target_link_libraries(llvm-profdata PRIVATE LLVMDebuginfod)
endif()
target_link_libraries(llvm-profdata PRIVATE LLVMDebuginfod)

View File

@@ -3464,10 +3464,7 @@ static int order_main() {
return 0;
}
int llvm_profdata_main(int argc, char **argvNonConst,
const llvm::ToolContext &) {
const char **argv = const_cast<const char **>(argvNonConst);
int main(int argc, const char *argv[]) {
StringRef ProgName(sys::path::filename(argv[0]));
if (argc < 2) {