mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
This void is implicit in C++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -55,7 +55,7 @@ static ManagedStatic<std::map<const Function *, ExFunc> > ExportedFunctions;
|
||||
static std::map<std::string, ExFunc> FuncNames;
|
||||
|
||||
#ifdef USE_LIBFFI
|
||||
typedef void (*RawFunc)(void);
|
||||
typedef void (*RawFunc)();
|
||||
static ManagedStatic<std::map<const Function *, RawFunc> > RawFunctions;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ static void jit_exit(int Status) {
|
||||
}
|
||||
|
||||
// jit_atexit - Used to intercept the "atexit" library call.
|
||||
static int jit_atexit(void (*Fn)(void)) {
|
||||
static int jit_atexit(void (*Fn)()) {
|
||||
AtExitHandlers.push_back(Fn); // Take note of atexit handler...
|
||||
return 0; // Always successful
|
||||
}
|
||||
|
||||
@@ -606,11 +606,11 @@ namespace {
|
||||
if (DwarfExceptionHandling) DE->setModuleInfo(Info);
|
||||
}
|
||||
|
||||
void setMemoryExecutable(void) {
|
||||
void setMemoryExecutable() {
|
||||
MemMgr->setMemoryExecutable();
|
||||
}
|
||||
|
||||
JITMemoryManager *getMemMgr(void) const { return MemMgr; }
|
||||
JITMemoryManager *getMemMgr() const { return MemMgr; }
|
||||
|
||||
private:
|
||||
void *getPointerToGlobal(GlobalValue *GV, void *Reference, bool NoNeedStub);
|
||||
|
||||
@@ -521,14 +521,14 @@ namespace {
|
||||
|
||||
/// setMemoryWritable - When code generation is in progress,
|
||||
/// the code pages may need permissions changed.
|
||||
void setMemoryWritable(void)
|
||||
void setMemoryWritable()
|
||||
{
|
||||
for (unsigned i = 0, e = CodeSlabs.size(); i != e; ++i)
|
||||
sys::Memory::setWritable(CodeSlabs[i]);
|
||||
}
|
||||
/// setMemoryExecutable - When code generation is done and we're ready to
|
||||
/// start execution, the code pages may need permissions changed.
|
||||
void setMemoryExecutable(void)
|
||||
void setMemoryExecutable()
|
||||
{
|
||||
for (unsigned i = 0, e = CodeSlabs.size(); i != e; ++i)
|
||||
sys::Memory::setExecutable(CodeSlabs[i]);
|
||||
|
||||
Reference in New Issue
Block a user