File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,21 @@ class TargetMachine {
111
111
112
112
// / replaceMachineCodeForFunction - Make it so that calling the
113
113
// / function whose machine code is at OLD turns into a call to NEW,
114
- // / perhaps by overwriting OLD with a branch to NEW. FIXME: this is
115
- // / JIT-specific.
114
+ // / perhaps by overwriting OLD with a branch to NEW.
115
+ // /
116
+ // / FIXME: this is JIT-specific.
116
117
// /
117
118
virtual void replaceMachineCodeForFunction (void *Old, void *New) {
118
119
assert (0 && " Current target cannot replace machine code for functions" );
119
120
}
121
+
122
+ // / getJITStubForFunction - Create or return a stub for the specified
123
+ // / function. This stub acts just like the specified function, except that it
124
+ // / allows the "address" of the function to be taken without having to
125
+ // / generate code for it.
126
+ virtual void *getJITStubForFunction (Function *F, MachineCodeEmitter &MCE) {
127
+ return 0 ;
128
+ }
120
129
};
121
130
122
131
} // End llvm namespace
You can’t perform that action at this time.
0 commit comments