aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-04-21 22:43:08 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-04-21 22:43:08 +0000
commitd1c881a8d4da8b4d99c2a40512fbcca652ab445e (patch)
tree563763a929b9d740e2e930dacd33bf6d9de998f4 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentedf128a7fa90f2b0b7ee24741a04a7ae1ecd6f7e (diff)
* Remove trailing whitespace
* Convert tabs to spaces git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index c2606979e3..9137fc52da 100644
--- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -1,16 +1,16 @@
//===-- ExternalFunctions.cpp - Implement External Functions --------------===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
-//
+//
// This file contains both code to deal with invoking "external" functions, but
// also contains code that implements "exported" external functions.
//
-// External functions in the interpreter are implemented by
+// External functions in the interpreter are implemented by
// using the system's dynamic loader to look up the address of the function
// we want to invoke. If a function is found, then one of the
// many lle_* wrapper functions in this file will translate its arguments from
@@ -301,7 +301,7 @@ GenericValue lle_X_sprintf(FunctionType *M, const vector<GenericValue> &Args) {
Last = *FB++ = *FmtStr++;
}
*FB = 0;
-
+
switch (Last) {
case '%':
sprintf(Buffer, FmtBuf); break;
@@ -328,7 +328,7 @@ GenericValue lle_X_sprintf(FunctionType *M, const vector<GenericValue> &Args) {
sprintf(Buffer, FmtBuf, Args[ArgNo++].DoubleVal); break;
case 'p':
sprintf(Buffer, FmtBuf, (void*)GVTOP(Args[ArgNo++])); break;
- case 's':
+ case 's':
sprintf(Buffer, FmtBuf, (char*)GVTOP(Args[ArgNo++])); break;
default: std::cout << "<unknown printf code '" << *FmtStr << "'!>";
ArgNo++; break;
@@ -504,7 +504,7 @@ static GenericValue size_t_to_GV (size_t n) {
return Ret;
}
-static size_t GV_to_size_t (GenericValue GV) {
+static size_t GV_to_size_t (GenericValue GV) {
size_t count;
if (sizeof (size_t) == sizeof (uint64_t)) {
count = (size_t)GV.ULongVal;