mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-03 18:32:50 +00:00
[Orc][Kaleidoscope] Fix method-name think-o. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
848d812931
commit
b7e0983d80
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user