[Orc][Kaleidoscope] More diff-reduction between tutorial versions.
authorLang Hames <lhames@gmail.com>
Thu, 26 Feb 2015 18:36:34 +0000 (18:36 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 26 Feb 2015 18:36:34 +0000 (18:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230658 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Kaleidoscope/Orc/initial/toy.cpp

index 3bf2fb6..1b65e8c 100644 (file)
@@ -1176,8 +1176,8 @@ public:
     // new module. Create one that resolves symbols by looking back into the
     // JIT.
     auto MM = createLookasideRTDyldMM<SectionMemoryManager>(
-                [&](const std::string &S) {
-                  return findSymbol(S).getAddress();
+                [&](const std::string &Name) {
+                  return findSymbol(Name).getAddress();
                 },
                 [](const std::string &S) { return 0; } );