From 45363644a21db093d2f88d680c48f90d77a39407 Mon Sep 17 00:00:00 2001 From: "Prof. Ronald Moore" <ronald.moore@h-da.de> Date: Fri, 23 Apr 2021 19:27:42 +0200 Subject: [PATCH] Updated for Summer 2021 Signed-off-by: Prof. Ronald Moore <ronald.moore@h-da.de> --- LLVM/cplusplus/README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/LLVM/cplusplus/README.md b/LLVM/cplusplus/README.md index 7419b40..5982954 100644 --- a/LLVM/cplusplus/README.md +++ b/LLVM/cplusplus/README.md @@ -17,6 +17,15 @@ in May 2017. This version can be fairly easily adpated to work with LLVM 3.9. It does NOT work with earlier versions of LLVM. +The current version was updated in Summer 2020 and worked with the current LLVM at that time. + +> +> **WARNING** In 2021, with LLVM 11, some of this directory works, but some doesn't. +> +> The broken parts will be fixed _soon_. +> + + All of the example files (fibonacci.cpp, ModuleMaker.cpp and toy*.cpp): - are available in the LLVM source tree, for example by running the @@ -36,6 +45,7 @@ All of the example files (fibonacci.cpp, ModuleMaker.cpp and toy*.cpp): Still, it should be emphasized that there is nothing really new here -- apart from the packaging, everything here is from the LLVM project! + Manifest ("Table of Contents") =============================== @@ -62,11 +72,11 @@ which does nothing but return a status of 5. LLVM bit code can be run using the LLVM "lli" tool. Thus, you should be able to do the following: -``` -make ModuleMaker -./ModuleMaker >status5.bc -lli status5.bc -echo $? # should print "5" +```sh +$ make ModuleMaker +$ ./ModuleMaker >status5.bc +$ lli status5.bc +$ echo $? # should print "5" ``` "Hello World" doesn't get much simpler than this! -- GitLab