mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[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:
committed by
GitHub
parent
e706a30ad5
commit
3f52eefcc2
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user