OSDN Git Service

[examples][ORC] Fix program names in calls to parse cl opt in examples.
authorLang Hames <lhames@gmail.com>
Fri, 24 Jan 2020 02:22:50 +0000 (18:22 -0800)
committerLang Hames <lhames@gmail.com>
Fri, 24 Jan 2020 03:18:16 +0000 (19:18 -0800)
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
llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp
llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp

index 875292a..9b020ef 100644 (file)
@@ -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()
index 04607d7..a2bdbcb 100644 (file)
@@ -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.
index c7e4051..f94fd85 100644 (file)
@@ -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;