summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-11-11 18:38:56 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-11-11 18:38:56 +0000
commitaab9ca73fd795faad971afd755edd9c5f6535618 (patch)
treeacdb13a070b8ab6ae7bfd9426a8cf1cc5b36f456 /tools
parentee8adb1955fde8d8e9f36b07b2d7f3f15314d051 (diff)
downloadllvm-aab9ca73fd795faad971afd755edd9c5f6535618.tar.gz
llvm-aab9ca73fd795faad971afd755edd9c5f6535618.tar.bz2
llvm-aab9ca73fd795faad971afd755edd9c5f6535618.tar.xz
'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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llee/ExecveHandler.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/llee/ExecveHandler.c b/tools/llee/ExecveHandler.c
index c289f57596..922a154864 100644
--- a/tools/llee/ExecveHandler.c
+++ b/tools/llee/ExecveHandler.c
@@ -5,7 +5,6 @@
//
//===----------------------------------------------------------------------===//
-#include "OSInterface.h"
#include "SysUtils.h"
#include "Config/errno.h"
#include "Config/stdlib.h"
@@ -52,21 +51,6 @@ int execve(const char *filename, char *const argv[], char *const envp[])
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.