From 0ec16ee98e8900e52cb4353688244508bd202975 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Sat, 20 Oct 2007 06:12:33 +0000 Subject: [PATCH] Some improvements based on feedback from Anders. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43203 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/Tutorial1.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/Tutorial1.html b/docs/tutorial/Tutorial1.html index bb7f8d1c488..77570164035 100644 --- a/docs/tutorial/Tutorial1.html +++ b/docs/tutorial/Tutorial1.html @@ -44,7 +44,7 @@ entry: -

Before going any further in this tutorial, you should look through the LLVM Language Reference Manual and convince yourself that the above LLVM IR is actually equivalent to the original function. Once you’re satisfied with that, let’s move on to actually generating it programmatically!

+

If you're unsure what the above code says, skim through the LLVM Language Reference Manual and convince yourself that the above LLVM IR is actually equivalent to the original function. Once you’re satisfied with that, let’s move on to actually generating it programmatically!

... STUFF ABOUT HEADERS ...

@@ -76,7 +76,7 @@ int main(int argc, char**argv) {

Finally, we instantiate an LLVM PassManager and run the PrintModulePass on our module. LLVM uses an explicit pass infrastructure to manage optimizations and various other things. A PassManager, as should be obvious from its name, manages passes: it is responsible for scheduling them, invoking them, and insuring the proper disposal after we’re done with them. For this example, we’re just using a trivial pass that prints out our module in textual form.

-

Now onto the interesting part: creating a populating a module. Here’s the first chunk of our createLLVMModule():

+

Now onto the interesting part: creating a populating a module. Here’s the first chunk of our makeLLVMModule():