Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion llvm/tools/llvm-cgdata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ add_llvm_tool(llvm-cgdata

DEPENDS
intrinsics_gen
GENERATE_DRIVER
)
6 changes: 3 additions & 3 deletions llvm/tools/llvm-cgdata/llvm-cgdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "llvm/IR/LLVMContext.h"
#include "llvm/Object/Archive.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/LLVMDriver.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/WithColor.h"
Expand Down Expand Up @@ -240,8 +240,8 @@ static int show_main(int argc, const char *argv[]) {
return 0;
}

int llvm_cgdata_main(int argc, char **argvNonConst, const llvm::ToolContext &) {
const char **argv = const_cast<const char **>(argvNonConst);
int main(int argc, const char **argv) {
llvm::InitLLVM X(argc, argv);

StringRef ProgName(sys::path::filename(argv[0]));

Expand Down