diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-14 23:25:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-14 23:25:48 +0000 |
commit | 1809966189202c00882ecb60ca1bf3af80c0fcb2 (patch) | |
tree | 1e3edcfe48fef83ffa365f9753d0c0837504ae9c /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | c9499b6a20b175ecb7080e110b96ea79cc1c311e (diff) | |
download | llvm-1809966189202c00882ecb60ca1bf3af80c0fcb2.zip llvm-1809966189202c00882ecb60ca1bf3af80c0fcb2.tar.gz llvm-1809966189202c00882ecb60ca1bf3af80c0fcb2.tar.bz2 |
Finegrainify namespacification
llvm-svn: 10465
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 2b9cda4..8cde5fe 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -32,7 +32,7 @@ #include <map> using std::vector; -namespace llvm { +using namespace llvm; typedef GenericValue (*ExFunc)(FunctionType *, const vector<GenericValue> &); static std::map<const Function *, ExFunc> Functions; @@ -550,25 +550,6 @@ static FILE *getFILE(void *Ptr) { break; if (IOB) break; } - -#if 0 /// FIXME! __iob support for LLI - // If we found an __iob symbol now, find out what the actual address it's - // held in is... - if (IOB) { - // Get the address the array lives in... - GlobalAddress *Address = - (GlobalAddress*)IOB->getOrCreateAnnotation(GlobalAddressAID); - IOBBase = (PointerTy)(GenericValue*)Address->Ptr; - - // Figure out how big each element of the array is... - const ArrayType *AT = - dyn_cast<ArrayType>(IOB->getType()->getElementType()); - if (AT) - FILESize = TD.getTypeSize(AT->getElementType()); - else - FILESize = 16*8; // Default size - } -#endif } // Check to see if this is a reference to __iob... @@ -774,4 +755,3 @@ void Interpreter::initializeExternalFunctions() { FuncNames["lle_X_llvm.va_copy"] = llvm_va_copy; } -} // End llvm namespace |