mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 23:55:03 +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
|
// FIXME: This pass should declare that the pass does not invalidate any LLVM
|
||||||
// passes.
|
// passes.
|
||||||
|
|
||||||
virtual bool runOnFunction(Function &F) {
|
virtual bool runOnFunction(Function &F) {
|
||||||
return runOnMachineFunction(MachineFunction::get(&F));
|
return runOnMachineFunction(MachineFunction::get(&F));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void virtfn(); // out of line virtual fn to give class a home.
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
@ -38,6 +38,8 @@ using namespace llvm;
|
|||||||
static AnnotationID MF_AID(
|
static AnnotationID MF_AID(
|
||||||
AnnotationManager::getID("CodeGen::MachineCodeForFunction"));
|
AnnotationManager::getID("CodeGen::MachineCodeForFunction"));
|
||||||
|
|
||||||
|
// Out of line virtual function to home classes.
|
||||||
|
void MachineFunctionPass::virtfn() {}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct VISIBILITY_HIDDEN Printer : public MachineFunctionPass {
|
struct VISIBILITY_HIDDEN Printer : public MachineFunctionPass {
|
||||||
|
Loading…
Reference in New Issue
Block a user