mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
da144ed5a2
Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. llvm-svn: 215558
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
//===---------- RPCChannel.h - LLVM out-of-process JIT execution ----------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Definition of the RemoteTargetExternal class which executes JITed code in a
|
|
// separate process from where it was built.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TOOLS_LLI_RPCCHANNEL_H
|
|
#define LLVM_TOOLS_LLI_RPCCHANNEL_H
|
|
|
|
#include <stdlib.h>
|
|
#include <string>
|
|
|
|
namespace llvm {
|
|
|
|
class RPCChannel {
|
|
public:
|
|
std::string ChildName;
|
|
|
|
RPCChannel() {}
|
|
~RPCChannel();
|
|
|
|
/// Start the remote process.
|
|
///
|
|
/// @returns True on success. On failure, ErrorMsg is updated with
|
|
/// descriptive text of the encountered error.
|
|
bool createServer();
|
|
|
|
bool createClient();
|
|
|
|
// This will get filled in as a point to an OS-specific structure.
|
|
void *ConnectionData;
|
|
|
|
bool WriteBytes(const void *Data, size_t Size);
|
|
bool ReadBytes(void *Data, size_t Size);
|
|
|
|
void Wait();
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|