diff options
| author | Lang Hames <lhames@gmail.com> | 2015-02-08 04:34:13 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2015-02-08 04:34:13 +0000 |
| commit | dac276ecaf2855e214f15d4b1a23e6782a737daa (patch) | |
| tree | df9d1074d988c3dad90dfb0453a043ddcc89ad9f /llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp | |
| parent | 45aa89c9251b95e857c2c84e2eeec6eeb19f3a10 (diff) | |
| download | bcm5719-llvm-dac276ecaf2855e214f15d4b1a23e6782a737daa.tar.gz bcm5719-llvm-dac276ecaf2855e214f15d4b1a23e6782a737daa.zip | |
[Orc][Kaleidoscope] Fix method-name think-o. NFC.
llvm-svn: 228519
Diffstat (limited to 'llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp')
| -rw-r--r-- | llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp b/llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp index d96f2323220..9ba8899033b 100644 --- a/llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp +++ b/llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp @@ -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: |

