mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Add an out-of-line virtual function to home class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3b5939caa
commit
efb9b813fa
@ -33,10 +33,11 @@ struct MachineFunctionPass : public FunctionPass {
|
||||
|
||||
// FIXME: This pass should declare that the pass does not invalidate any LLVM
|
||||
// passes.
|
||||
|
||||
virtual bool runOnFunction(Function &F) {
|
||||
return runOnMachineFunction(MachineFunction::get(&F));
|
||||
}
|
||||
|
||||
virtual void virtfn(); // out of line virtual fn to give class a home.
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
@ -38,6 +38,8 @@ using namespace llvm;
|
||||
static AnnotationID MF_AID(
|
||||
AnnotationManager::getID("CodeGen::MachineCodeForFunction"));
|
||||
|
||||
// Out of line virtual function to home classes.
|
||||
void MachineFunctionPass::virtfn() {}
|
||||
|
||||
namespace {
|
||||
struct VISIBILITY_HIDDEN Printer : public MachineFunctionPass {
|
||||
|
Loading…
x
Reference in New Issue
Block a user