diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:43:08 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:43:08 +0000 |
commit | 91fb9ab60b6f769e13d528f66d2357bd461471b9 (patch) | |
tree | 59f9ed1a0e4f79e321618f17cf32f7d50bc01e3d /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 835702a094b0900a0b550f36a26df8ef7a15d3c7 (diff) | |
download | llvm-91fb9ab60b6f769e13d528f66d2357bd461471b9.zip llvm-91fb9ab60b6f769e13d528f66d2357bd461471b9.tar.gz llvm-91fb9ab60b6f769e13d528f66d2357bd461471b9.tar.bz2 |
* Remove trailing whitespace
* Convert tabs to spaces
llvm-svn: 21421
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index c260697..9137fc5 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/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; |