aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-17 18:27:25 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-17 18:27:25 +0000
commit9a7871bd3dceafd644008c740617d4516a34a601 (patch)
tree82b3601a755a43b4673b51e6e7bdff7cb42c5fb4
parent7f3df4150c9bfa2e5de07220cea19f9c84d4db52 (diff)
Add prototype for replaceMachineCodeForFunction().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9202 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/SparcV9Internals.h1
-rw-r--r--lib/Target/X86/X86TargetMachine.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9Internals.h b/lib/Target/SparcV9/SparcV9Internals.h
index 79bfde7e22..f394fc0ac3 100644
--- a/lib/Target/SparcV9/SparcV9Internals.h
+++ b/lib/Target/SparcV9/SparcV9Internals.h
@@ -677,6 +677,7 @@ public:
virtual bool addPassesToJITCompile(FunctionPassManager &PM);
virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
MachineCodeEmitter &MCE);
+ virtual bool replaceMachineCodeForFunction(void *Old, void *New);
// getPrologEpilogInsertionPass - Inserts prolog/epilog code.
FunctionPass* getPrologEpilogInsertionPass();
diff --git a/lib/Target/X86/X86TargetMachine.h b/lib/Target/X86/X86TargetMachine.h
index 74eced895a..40c1afb50d 100644
--- a/lib/Target/X86/X86TargetMachine.h
+++ b/lib/Target/X86/X86TargetMachine.h
@@ -44,6 +44,8 @@ public:
MachineCodeEmitter &MCE);
virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
+
+ virtual bool replaceMachineCodeForFunction (void *Old, void *New);
};
#endif