From fbb8642c1c4c5e7a435d05a81c07ca8efbd24899 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 23 Jan 2020 18:22:50 -0800 Subject: [PATCH] [examples][ORC] Fix program names in calls to parse cl opt in examples. These examples were all copied and adapted from the original HowToUseLLJIT example code, however the calls to cl::ParseCommandLineOptions were not updated. --- llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp | 2 +- .../LLJITWithCustomObjectLinkingLayer.cpp | 2 +- .../LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp b/llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp index 875292a2e09..9b020ef8c49 100644 --- a/llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp +++ b/llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) { InitializeNativeTarget(); InitializeNativeTargetAsmPrinter(); - cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT"); + cl::ParseCommandLineOptions(argc, argv, "LLJITDumpObjects"); ExitOnErr.setBanner(std::string(argv[0]) + ": "); outs() diff --git a/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp index 04607d743ad..a2bdbcbb08a 100644 --- a/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp +++ b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) { InitializeNativeTarget(); InitializeNativeTargetAsmPrinter(); - cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT"); + cl::ParseCommandLineOptions(argc, argv, "LLJITWithCustomObjectLinkingLayer"); ExitOnErr.setBanner(std::string(argv[0]) + ": "); // Detect the host and set code model to small. diff --git a/llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp b/llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp index c7e4051b4fe..f94fd853ed0 100644 --- a/llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp +++ b/llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp @@ -83,7 +83,7 @@ int main(int argc, char *argv[]) { InitializeNativeTarget(); InitializeNativeTargetAsmPrinter(); - cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT"); + cl::ParseCommandLineOptions(argc, argv, "LLJITWithObjectCache"); ExitOnErr.setBanner(std::string(argv[0]) + ": "); MyObjectCache MyCache; -- 2.11.0