aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-20 23:53:26 +0000
committerChris Lattner <sabre@nondot.org>2004-11-20 23:53:26 +0000
commit3bf285a6765438ac1c73638814cae6201ae26a3a (patch)
tree9f84f32cd5464dff64939e9d4d136c79f4386c26
parentec45c2388f65a5f52a91e7cbaf0a43d56ddd30ca (diff)
downloadexternal_llvm-3bf285a6765438ac1c73638814cae6201ae26a3a.tar.gz
external_llvm-3bf285a6765438ac1c73638814cae6201ae26a3a.tar.bz2
external_llvm-3bf285a6765438ac1c73638814cae6201ae26a3a.zip
Adjust to changed interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18064 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/MachineCodeEmitter.cpp14
-rw-r--r--lib/Target/SparcV9/SparcV9CodeEmitter.cpp4
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index fde6969764..c64366cded 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -28,11 +28,11 @@ namespace {
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;
}
@@ -105,11 +105,11 @@ namespace {
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);
}
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
index fd53d57685..fccc3e7cfa 100644
--- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
+++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
@@ -420,7 +420,7 @@ void JITResolver::CompilationCallback() {
/// 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");
@@ -461,7 +461,7 @@ uint64_t JITResolver::emitStubForFunction(Function *F) {
}
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,