summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-21 21:32:12 +0000
committerChris Lattner <sabre@nondot.org>2003-08-21 21:32:12 +0000
commitabca19d2b314ab12549aa7dd8a52af66e8cf3914 (patch)
treed52b51020e80c677daf6b352543fa37e172b52ed /llvm/lib/ExecutionEngine
parent42c6d5940bd6b63838b1d9fb13a2b43694c37145 (diff)
downloadbcm5719-llvm-abca19d2b314ab12549aa7dd8a52af66e8cf3914.tar.gz
bcm5719-llvm-abca19d2b314ab12549aa7dd8a52af66e8cf3914.zip
Minor cleanups: wrap at 80 lines. Convert file comment to doxygen format and
llvm style llvm-svn: 8024
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp43
1 files changed, 17 insertions, 26 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index d4726f0d35b..7f4877b9cb2 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -11,8 +11,6 @@
#include "llvm/Module.h"
#include "Support/CommandLine.h"
-#include "Config/stdlib.h"
-
// FIXME: REMOVE THIS
#include "llvm/PassManager.h"
@@ -103,36 +101,29 @@ VM::VM(Module *M, TargetMachine *tm) : ExecutionEngine(M), TM(*tm) {
emitGlobals();
}
-//
-// Method: run()
-//
-// Description:
-// This method begins the execution of a program beginning at the
-// specified function name. The function is called with the
-// specified arguments and array of environment variables (a la main()).
-//
-// Inputs:
-// FnName - The name of the function as a C++ string.
-// Args - A vector of C++ strings containing the arguments.
-// envp - An array of C strings containing the environment.
-//
-// Outputs:
-// None.
-//
-// Return value:
-// 1 - An error occurred.
-// Otherwise, the return value from the specified function is returned.
-//
-int VM::run(const std::string &FnName,
- const std::vector<std::string> &Args,
- const char ** envp) {
+/// VM::run - This method begins the execution of a program beginning at the
+/// specified function name. The function is called with the specified
+/// arguments and array of environment variables (a la main()).
+///
+/// Inputs:
+/// FnName - The name of the function as a C++ string.
+/// Args - A vector of C++ strings containing the arguments.
+/// envp - An array of C strings containing the environment.
+///
+/// Return value:
+/// 1 - An error occurred.
+/// Otherwise, the return value from the specified function is returned.
+///
+int VM::run(const std::string &FnName, const std::vector<std::string> &Args,
+ const char **envp) {
Function *F = getModule().getNamedFunction(FnName);
if (F == 0) {
std::cerr << "Could not find function '" << FnName << "' in module!\n";
return 1;
}
- int(*PF)(int, char**, const char**) = (int(*)(int, char**, const char**))getPointerToFunction(F);
+ int (*PF)(int, char**, const char**) =
+ (int(*)(int, char**, const char**))getPointerToFunction(F);
assert(PF != 0 && "Null pointer to function?");
// Build an argv vector...
OpenPOWER on IntegriCloud