From: Davide Italiano Date: Wed, 7 Sep 2016 00:48:47 +0000 (+0000) Subject: [opt] Remove an unused argument to runPassPipeline(). X-Git-Tag: llvmorg-4.0.0-rc1~10501 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5d0a5cef1050435e6f760e242f88737344305b8;p=platform%2Fupstream%2Fllvm.git [opt] Remove an unused argument to runPassPipeline(). I have plans to use this API also in libLTO (and maybe lld). llvm-svn: 280770 --- diff --git a/llvm/tools/opt/NewPMDriver.cpp b/llvm/tools/opt/NewPMDriver.cpp index 223d960..acdf263 100644 --- a/llvm/tools/opt/NewPMDriver.cpp +++ b/llvm/tools/opt/NewPMDriver.cpp @@ -47,7 +47,7 @@ static cl::opt "pipeline for handling managed aliasing queries"), cl::Hidden); -bool llvm::runPassPipeline(StringRef Arg0, LLVMContext &Context, Module &M, +bool llvm::runPassPipeline(StringRef Arg0, Module &M, TargetMachine *TM, tool_output_file *Out, StringRef PassPipeline, OutputKind OK, VerifierKind VK, diff --git a/llvm/tools/opt/NewPMDriver.h b/llvm/tools/opt/NewPMDriver.h index 5cf2afc..04022e7 100644 --- a/llvm/tools/opt/NewPMDriver.h +++ b/llvm/tools/opt/NewPMDriver.h @@ -47,7 +47,7 @@ enum VerifierKind { /// inclusion of the new pass manager headers and the old headers into the same /// file. It's interface is consequentially somewhat ad-hoc, but will go away /// when the transition finishes. -bool runPassPipeline(StringRef Arg0, LLVMContext &Context, Module &M, +bool runPassPipeline(StringRef Arg0, Module &M, TargetMachine *TM, tool_output_file *Out, StringRef PassPipeline, opt_tool::OutputKind OK, opt_tool::VerifierKind VK, diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 6564d0a..8ae18df 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -490,7 +490,7 @@ int main(int argc, char **argv) { // The user has asked to use the new pass manager and provided a pipeline // string. Hand off the rest of the functionality to the new code for that // layer. - return runPassPipeline(argv[0], Context, *M, TM.get(), Out.get(), + return runPassPipeline(argv[0], *M, TM.get(), Out.get(), PassPipeline, OK, VK, PreserveAssemblyUseListOrder, PreserveBitcodeUseListOrder, EmitSummaryIndex, EmitModuleHash)