Skip to content

Commit 1a0117f

Browse files
committed
Revert this patch, it broke a ton of programs.
llvm-svn: 18535
1 parent f878f75 commit 1a0117f

File tree

1 file changed

+0
-4
lines changed
  • llvm/lib/ExecutionEngine/JIT

1 file changed

+0
-4
lines changed

llvm/lib/ExecutionEngine/JIT/JIT.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,6 @@ void *JIT::getPointerToFunctionOrStub(Function *F) {
274274
if (void *Addr = getPointerToGlobalIfAvailable(F))
275275
return Addr;
276276

277-
// Get a stub if the target supports it
278-
if (void *Addr = TJI.emitFunctionStub(F, *MCE))
279-
return Addr;
280-
281277
// Otherwise, if the target doesn't support it, just codegen the function.
282278
return getPointerToFunction(F);
283279
}

0 commit comments

Comments
 (0)