| 1 |
// { dg-lto-do assemble } |
| 2 |
// { dg-lto-options {{-g -flto}} } |
| 3 |
|
| 4 |
namespace llvm |
| 5 |
{ |
| 6 |
class Function; |
| 7 |
class MachineCodeInfo; |
| 8 |
class ExecutionEngine |
| 9 |
{ |
| 10 |
}; |
| 11 |
class JIT : public ExecutionEngine |
| 12 |
{ |
| 13 |
void runJITOnFunction (Function * F, MachineCodeInfo * MCI = 0); |
| 14 |
}; |
| 15 |
class JITEventListener |
| 16 |
{ |
| 17 |
public: |
| 18 |
JITEventListener () |
| 19 |
{ |
| 20 |
} |
| 21 |
virtual ~JITEventListener (); |
| 22 |
}; |
| 23 |
} |
| 24 |
|
| 25 |
using namespace llvm; |
| 26 |
void |
| 27 |
JIT::runJITOnFunction (Function * F, MachineCodeInfo * MCI) |
| 28 |
{ |
| 29 |
class MCIListener:public JITEventListener |
| 30 |
{ |
| 31 |
MachineCodeInfo *const MCI; |
| 32 |
public: |
| 33 |
MCIListener (MachineCodeInfo * mci):MCI (mci) |
| 34 |
{ |
| 35 |
} |
| 36 |
}; |
| 37 |
} |
| 38 |
|