[PATCH] D20954: [Kaleidoscope] Update docs in Chapter 3 to follow latest code changes

Miroslav Hrnčíř via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 04:04:39 PDT 2016


CdTCzech created this revision.
CdTCzech added a reviewer: lhames.
CdTCzech added a subscriber: llvm-commits.

1) Removed forgotten pointer after modernization. (missed in 246002 by lhames)
2) Fix static global ordering in docs. (missed in 270381 by lhames)

http://reviews.llvm.org/D20954

Files:
  docs/tutorial/LangImpl3.rst

Index: docs/tutorial/LangImpl3.rst
===================================================================
--- docs/tutorial/LangImpl3.rst
+++ docs/tutorial/LangImpl3.rst
@@ -73,9 +73,9 @@
 
 .. code-block:: c++
 
-    static std::unique_ptr<Module> *TheModule;
-    static IRBuilder<> Builder(LLVMContext);
-    static std::map<std::string, Value*> NamedValues;
+    static IRBuilder<> Builder(TheContext);
+    static std::unique_ptr<Module> TheModule;
+    static std::map<std::string, Value *> NamedValues;
 
     Value *LogErrorV(const char *Str) {
       LogError(Str);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20954.59501.patch
Type: text/x-patch
Size: 572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160603/000201a7/attachment.bin>


More information about the llvm-commits mailing list