[llvm] r375269 - [examples] Fix some comments in the LLJITWithJITLink example

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 11:35:02 PDT 2019


Author: lhames
Date: Fri Oct 18 11:35:02 2019
New Revision: 375269

URL: http://llvm.org/viewvc/llvm-project?rev=375269&view=rev
Log:
[examples] Fix some comments in the LLJITWithJITLink example

Modified:
    llvm/trunk/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp

Modified: llvm/trunk/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp?rev=375269&r1=375268&r2=375269&view=diff
==============================================================================
--- llvm/trunk/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp (original)
+++ llvm/trunk/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp Fri Oct 18 11:35:02 2019
@@ -38,14 +38,14 @@ int main(int argc, char *argv[]) {
   cl::ParseCommandLineOptions(argc, argv, "HowToUseLLJIT");
   ExitOnErr.setBanner(std::string(argv[0]) + ": ");
 
-  // Declare an in-process JITLink memory manager.
+  // Define an in-process JITLink memory manager.
   jitlink::InProcessMemoryManager MemMgr;
 
   // Detect the host and set code model to small.
   auto JTMB = ExitOnErr(JITTargetMachineBuilder::detectHost());
   JTMB.setCodeModel(CodeModel::Small);
 
-  // Create an LLJIT instance with a custom CompileFunction.
+  // Create an LLJIT instance with an ObjectLinkingLayer as the base layer.
   auto J =
       ExitOnErr(LLJITBuilder()
                     .setJITTargetMachineBuilder(std::move(JTMB))




More information about the llvm-commits mailing list