From 9d57cdb5110232677a139dafac8f1b029b7b37aa Mon Sep 17 00:00:00 2001 From: jumormt Date: Wed, 14 Feb 2024 16:35:30 +1100 Subject: [PATCH] sync with latest SVF --- CodeGraph/CodeGraph.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CodeGraph/CodeGraph.cpp b/CodeGraph/CodeGraph.cpp index f7a4181..39a77a1 100644 --- a/CodeGraph/CodeGraph.cpp +++ b/CodeGraph/CodeGraph.cpp @@ -37,17 +37,15 @@ using namespace SVF; using namespace llvm; using namespace std; -static llvm::cl::opt InputFilename(cl::Positional, - llvm::cl::desc(""), llvm::cl::init("-")); int main(int argc, char ** argv) { int arg_num = 0; char **arg_value = new char*[argc]; std::vector moduleNameVec; - LLVMUtil::processArguments(argc, argv, arg_num, arg_value, moduleNameVec); - cl::ParseCommandLineOptions(arg_num, arg_value, - "Whole Program Points-to Analysis\n"); + moduleNameVec = OptionBase::parseOptions( + arg_num, arg_value, "Teaching-Software-Analysis Assignment 4", "[options] " + ); SVFModule* svfModule = LLVMModuleSet::getLLVMModuleSet()->buildSVFModule(moduleNameVec);