From f7a743d7ed6e96af4c836e512c9cd59812c8186e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 Dec 2003 23:25:48 +0000 Subject: Finegrainify namespacification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10465 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Interpreter/ExternalFunctions.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp') diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 2b9cda4a6a..8cde5fe535 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -32,7 +32,7 @@ #include using std::vector; -namespace llvm { +using namespace llvm; typedef GenericValue (*ExFunc)(FunctionType *, const vector &); static std::map 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(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 -- cgit v1.2.3-18-g5258