[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)
llvm-svn: 230658

llvm/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; } );