mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 20:07:48 +00:00
Adjust to changed interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18064 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec45c2388f
commit
3bf285a676
@ -28,11 +28,11 @@ namespace {
|
|||||||
void finishFunction(MachineFunction &F) {
|
void finishFunction(MachineFunction &F) {
|
||||||
std::cout << "\n";
|
std::cout << "\n";
|
||||||
}
|
}
|
||||||
void startFunctionStub(const Function &F, unsigned StubSize) {
|
void startFunctionStub(unsigned StubSize) {
|
||||||
std::cout << "\n--- Function stub for function: " << F.getName() << "\n";
|
std::cout << "\n--- Function stub:\n";
|
||||||
}
|
}
|
||||||
void *finishFunctionStub(const Function &F) {
|
void *finishFunctionStub(const Function *F) {
|
||||||
std::cout << "\n";
|
std::cout << "\n--- End of stub for Function\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,11 +105,11 @@ namespace {
|
|||||||
MCE.emitConstantPool(MCP);
|
MCE.emitConstantPool(MCP);
|
||||||
}
|
}
|
||||||
|
|
||||||
void startFunctionStub(const Function &F, unsigned StubSize) {
|
void startFunctionStub(unsigned StubSize) {
|
||||||
MCE.startFunctionStub(F, StubSize);
|
MCE.startFunctionStub(StubSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *finishFunctionStub(const Function &F) {
|
void *finishFunctionStub(const Function *F) {
|
||||||
return MCE.finishFunctionStub(F);
|
return MCE.finishFunctionStub(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -420,7 +420,7 @@ void JITResolver::CompilationCallback() {
|
|||||||
/// directly.
|
/// directly.
|
||||||
///
|
///
|
||||||
uint64_t JITResolver::emitStubForFunction(Function *F) {
|
uint64_t JITResolver::emitStubForFunction(Function *F) {
|
||||||
MCE.startFunctionStub(*F, 44);
|
MCE.startFunctionStub(44);
|
||||||
|
|
||||||
DEBUG(std::cerr << "Emitting stub at addr: 0x"
|
DEBUG(std::cerr << "Emitting stub at addr: 0x"
|
||||||
<< std::hex << MCE.getCurrentPCValue() << "\n");
|
<< std::hex << MCE.getCurrentPCValue() << "\n");
|
||||||
@ -461,7 +461,7 @@ uint64_t JITResolver::emitStubForFunction(Function *F) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SparcV9.emitWord(0xDEADBEEF); // marker so that we know it's really a stub
|
SparcV9.emitWord(0xDEADBEEF); // marker so that we know it's really a stub
|
||||||
return (intptr_t)MCE.finishFunctionStub(*F)+4; /* 1 instr past the restore */
|
return (intptr_t)MCE.finishFunctionStub(F)+4; /* 1 instr past the restore */
|
||||||
}
|
}
|
||||||
|
|
||||||
SparcV9CodeEmitter::SparcV9CodeEmitter(TargetMachine &tm,
|
SparcV9CodeEmitter::SparcV9CodeEmitter(TargetMachine &tm,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user