[llvm-commits] CVS: llvm/tools/llee/ExecveHandler.c
Misha Brukman
brukman at cs.uiuc.edu
Tue Nov 11 12:40:02 PST 2003
Changes in directory llvm/tools/llee:
ExecveHandler.c updated: 1.5 -> 1.6
---
Log message:
'Tis quite silly to check for a cached version of the entire executable. That
amounts to checking for a completely-native version. We'll cache on a
function-by-function basis instead (in the JIT's CodeEmitter).
---
Diffs of the changes: (+0 -16)
Index: llvm/tools/llee/ExecveHandler.c
diff -u llvm/tools/llee/ExecveHandler.c:1.5 llvm/tools/llee/ExecveHandler.c:1.6
--- llvm/tools/llee/ExecveHandler.c:1.5 Tue Nov 11 12:23:09 2003
+++ llvm/tools/llee/ExecveHandler.c Tue Nov 11 12:38:56 2003
@@ -5,7 +5,6 @@
//
//===----------------------------------------------------------------------===//
-#include "OSInterface.h"
#include "SysUtils.h"
#include "Config/errno.h"
#include "Config/stdlib.h"
@@ -52,21 +51,6 @@
close(file);
if (bytesRead != (ssize_t)headerSize) return EIO;
if (!memcmp(llvmHeader, header, headerSize)) {
- /*
- * Check if we have a cached translation on disk
- */
- struct stat buf;
- llvmStat(realFilename, &buf);
- if (isExecutable(&buf)) {
- size_t size;
- void *fileAddr = llvmReadFile(realFilename, &size);
- fprintf(stderr, "Found in cache: '%s'\n", realFilename);
- if (fileAddr) {
- free(fileAddr);
- }
- llvmExecve(realFilename, argv, envp);
- }
-
/*
* This is a bytecode file, so execute the JIT with the program and
* parameters.
More information about the llvm-commits
mailing list