[Orc][Kaleidoscope] Fix method-name think-o. NFC.
authorLang Hames <lhames@gmail.com>
Sun, 8 Feb 2015 04:34:13 +0000 (04:34 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 8 Feb 2015 04:34:13 +0000 (04:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228519 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Kaleidoscope/Orc/initial/toy.cpp
examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp
examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp

index 8716f09..ce9fc7f 100644 (file)
@@ -1152,7 +1152,7 @@ public:
     // new module. Create one that resolves symbols by looking back into the JIT.
     auto MM = createLookasideRTDyldMM<SectionMemoryManager>(
                 [&](const std::string &S) {
-                  return getUnmangledSymbolAddress(S);
+                  return getMangledSymbolAddress(S);
                 }, 
                 [](const std::string &S) { return 0; } );
 
@@ -1161,7 +1161,7 @@ public:
 
   void removeModule(ModuleHandleT H) { CompileLayer.removeModuleSet(H); }
 
-  uint64_t getUnmangledSymbolAddress(const std::string &Name) {
+  uint64_t getMangledSymbolAddress(const std::string &Name) {
     return CompileLayer.getSymbolAddress(Name, false);
   }
 
@@ -1171,7 +1171,7 @@ public:
       raw_string_ostream MangledNameStream(MangledName);
       Mang.getNameWithPrefix(MangledNameStream, Name);
     }
-    return getUnmangledSymbolAddress(MangledName);
+    return getMangledSymbolAddress(MangledName);
   }
 
 private:
index d96f232..9ba8899 100644 (file)
@@ -1154,7 +1154,7 @@ public:
     // new module. Create one that resolves symbols by looking back into the JIT.
     auto MM = createLookasideRTDyldMM<SectionMemoryManager>(
                 [&](const std::string &S) {
-                  return getUnmangledSymbolAddress(S);
+                  return getMangledSymbolAddress(S);
                 }, 
                 [](const std::string &S) { return 0; } );
 
@@ -1163,7 +1163,7 @@ public:
 
   void removeModule(ModuleHandleT H) { LazyEmitLayer.removeModuleSet(H); }
 
-  uint64_t getUnmangledSymbolAddress(const std::string &Name) {
+  uint64_t getMangledSymbolAddress(const std::string &Name) {
     return LazyEmitLayer.getSymbolAddress(Name, false);
   }
 
@@ -1173,7 +1173,7 @@ public:
       raw_string_ostream MangledNameStream(MangledName);
       Mang.getNameWithPrefix(MangledNameStream, Name);
     }
-    return getUnmangledSymbolAddress(MangledName);
+    return getMangledSymbolAddress(MangledName);
   }
 
 private:
index f13af2e..baafae2 100644 (file)
@@ -1165,7 +1165,7 @@ public:
     auto MM = createLookasideRTDyldMM<SectionMemoryManager>(
                 [&](const std::string &Name) -> uint64_t {
                   // First try to find 'Name' within the JIT.
-                  if (uint64_t Addr = getUnmangledSymbolAddress(Name))
+                  if (uint64_t Addr = getMangledSymbolAddress(Name))
                     return Addr;
 
                   // If we don't find 'Name' in the JIT, see if we have some AST
@@ -1184,7 +1184,7 @@ public:
                   }
 
                   addModule(C.takeM());
-                  return getUnmangledSymbolAddress(Name);
+                  return getMangledSymbolAddress(Name);
                 }, 
                 [](const std::string &S) { return 0; } );
 
@@ -1193,12 +1193,12 @@ public:
 
   void removeModule(ModuleHandleT H) { LazyEmitLayer.removeModuleSet(H); }
 
-  uint64_t getUnmangledSymbolAddress(const std::string &Name) {
+  uint64_t getMangledSymbolAddress(const std::string &Name) {
     return LazyEmitLayer.getSymbolAddress(Name, false);
   }
 
   uint64_t getSymbolAddress(const std::string &Name) {
-    return getUnmangledSymbolAddress(Mangle(Name));
+    return getMangledSymbolAddress(Mangle(Name));
   }
 
 private: