void finishFunction(MachineFunction &F) {
std::cout << "\n";
}
- void startFunctionStub(const Function &F, unsigned StubSize) {
- std::cout << "\n--- Function stub for function: " << F.getName() << "\n";
+ void startFunctionStub(unsigned StubSize) {
+ std::cout << "\n--- Function stub:\n";
}
- void *finishFunctionStub(const Function &F) {
- std::cout << "\n";
+ void *finishFunctionStub(const Function *F) {
+ std::cout << "\n--- End of stub for Function\n";
return 0;
}
MCE.emitConstantPool(MCP);
}
- void startFunctionStub(const Function &F, unsigned StubSize) {
- MCE.startFunctionStub(F, StubSize);
+ void startFunctionStub(unsigned StubSize) {
+ MCE.startFunctionStub(StubSize);
}
- void *finishFunctionStub(const Function &F) {
+ void *finishFunctionStub(const Function *F) {
return MCE.finishFunctionStub(F);
}
/// directly.
///
uint64_t JITResolver::emitStubForFunction(Function *F) {
- MCE.startFunctionStub(*F, 44);
+ MCE.startFunctionStub(44);
DEBUG(std::cerr << "Emitting stub at addr: 0x"
<< std::hex << MCE.getCurrentPCValue() << "\n");
}
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,