summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
45daa0a)
recompile and relink. This keeps it from failing an assertion when
it goes and tries to construct a new MachineFunction for that Function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9459
91177308-0d34-0410-b5e6-
96231b3b80d8
#include "VM.h"
#include "llvm/Function.h"
#include "llvm/ModuleProvider.h"
#include "VM.h"
#include "llvm/Function.h"
#include "llvm/ModuleProvider.h"
+#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/Target/TargetMachine.h"
void *OldAddr = Addr;
Addr = 0;
void *OldAddr = Addr;
Addr = 0;
+ MachineFunction::destruct (F);
runJITOnFunction (F);
assert(Addr && "Code generation didn't add function to GlobalAddress table!");
TM.replaceMachineCodeForFunction (OldAddr, Addr);
runJITOnFunction (F);
assert(Addr && "Code generation didn't add function to GlobalAddress table!");
TM.replaceMachineCodeForFunction (OldAddr, Addr);