mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
There is no reason to store <x,x>, just store <x>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e61676b56
commit
15ee8adb00
@ -16,7 +16,7 @@
|
||||
#include "PPC32Relocations.h"
|
||||
#include "llvm/CodeGen/MachineCodeEmitter.h"
|
||||
#include "llvm/Config/alloca.h"
|
||||
#include <map>
|
||||
#include <set>
|
||||
using namespace llvm;
|
||||
|
||||
static TargetJITInfo::JITCompilerFn JITCompilerFunction;
|
||||
@ -210,10 +210,8 @@ void PPC32JITInfo::relocate(void *Function, MachineRelocation *MR,
|
||||
// the pointer is relocated into instructions instead of the pointer
|
||||
// itself. Because we have to keep the mapping anyway, we just return
|
||||
// pointers to the values in the map as our new location.
|
||||
static std::map<void*,void*> Pointers;
|
||||
void *&Ptr = Pointers[(void*)ResultPtr];
|
||||
Ptr = (void*)ResultPtr;
|
||||
ResultPtr = (intptr_t)&Ptr;
|
||||
static std::set<void*> Pointers;
|
||||
ResultPtr = (intptr_t)&*Pointers.insert((void*)ResultPtr).first;
|
||||
}
|
||||
// FALL THROUGH
|
||||
case PPC::reloc_absolute_high: // high bits of ref -> low 16 of instr
|
||||
|
Loading…
x
Reference in New Issue
Block a user