[llvm] fbb8642 - [examples][ORC] Fix program names in calls to parse cl opt in examples.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 19:27:01 PST 2020


Author: Lang Hames
Date: 2020-01-23T19:18:16-08:00
New Revision: fbb8642c1c4c5e7a435d05a81c07ca8efbd24899

URL: https://github.com/llvm/llvm-project/commit/fbb8642c1c4c5e7a435d05a81c07ca8efbd24899
DIFF: https://github.com/llvm/llvm-project/commit/fbb8642c1c4c5e7a435d05a81c07ca8efbd24899.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp
    llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp
    llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp b/llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp
index 875292a2e091..9b020ef8c49d 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 04607d743adf..a2bdbcbb08ad 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 c7e4051b4fee..f94fd853ed03 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;


        


More information about the llvm-commits mailing list