#include "VM.h"
#include "Support/DynamicLinker.h"
#include <iostream>
#include "VM.h"
#include "Support/DynamicLinker.h"
#include <iostream>
// AtExitHandlers - List of functions to call when the program exits,
// registered with the atexit() library function.
// AtExitHandlers - List of functions to call when the program exits,
// registered with the atexit() library function.
-
-} // End llvm namespace
-//===-- JIT.cpp - LLVM Just in Time Compiler ------------------------------===//
+//===-- JIT.cpp - LLVM Just-In-Time Compiler ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachineImpls.h"
#include "Support/CommandLine.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachineImpls.h"
#include "Support/CommandLine.h"
#if !defined(ENABLE_X86_JIT) && !defined(ENABLE_SPARC_JIT)
#define NO_JITS_ENABLED
#endif
#if !defined(ENABLE_X86_JIT) && !defined(ENABLE_SPARC_JIT)
#define NO_JITS_ENABLED
#endif
namespace {
enum ArchName { x86, Sparc };
namespace {
enum ArchName { x86, Sparc };
rv.IntVal = ExitCode;
return rv;
}
rv.IntVal = ExitCode;
return rv;
}
-
-} // End llvm namespace
#include "Support/Statistic.h"
#include "Config/unistd.h"
#include "Config/sys/mman.h"
#include "Support/Statistic.h"
#include "Config/unistd.h"
#include "Config/sys/mman.h"
namespace {
Statistic<> NumBytes("jit", "Number of bytes of machine code compiled");
namespace {
Statistic<> NumBytes("jit", "Number of bytes of machine code compiled");
return TheVM->getPointerToNamedFunction(Name);
}
}
return TheVM->getPointerToNamedFunction(Name);
}
}
-
-} // End llvm namespace
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/Target/TargetMachine.h"
TM.replaceMachineCodeForFunction(OldAddr, Addr);
return Addr;
}
TM.replaceMachineCodeForFunction(OldAddr, Addr);
return Addr;
}
-
-} // End llvm namespace