/// code.
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
-
- /// getJITStubForFunction - Create or return a stub for the specified
- /// function. This stub acts just like the specified function, except that
- /// it allows the "address" of the function to be taken without having to
- /// generate code for it.
- virtual void *getJITStubForFunction(Function *F, MachineCodeEmitter &MCE);
};
}
// PM.add(createMachineCodeDeleter());
}
-void *PPC64JITInfo::getJITStubForFunction(Function *F,
- MachineCodeEmitter &MCE) {
- assert (0 && "PPC64JITInfo::getJITStubForFunction not implemented");
- return 0;
-}
-
void PPC64JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
assert (0 && "PPC64JITInfo::replaceMachineCodeForFunction not implemented");
}
/// code.
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
-
- /// getJITStubForFunction - Create or return a stub for the specified
- /// function. This stub acts just like the specified function, except that
- /// it allows the "address" of the function to be taken without having to
- /// generate code for it.
- virtual void *getJITStubForFunction(Function *F, MachineCodeEmitter &MCE);
};
}
return rv;
}
-
-void *PPC32JITInfo::getJITStubForFunction(Function *F, MachineCodeEmitter &MCE){
- return (void*)((unsigned long)getResolver(MCE).getLazyResolver(F));
-}
-
void PPC32JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
std::cerr << "PPC32JITInfo::replaceMachineCodeForFunction not implemented\n";
abort();