Finegrainify namespacification
authorChris Lattner <sabre@nondot.org>
Sun, 14 Dec 2003 23:25:48 +0000 (23:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Dec 2003 23:25:48 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10465 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
lib/ExecutionEngine/Interpreter/Interpreter.cpp

index 2b9cda4a6a466def2be248cb2da279dda4d0c188..8cde5fe535ce5a3a91fe13cfa2a63d50b8a71236 100644 (file)
@@ -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
index bb14cd2ee89abbb3b8b0d797bdc0813ea9e8dbef..663d9a6b36b08b78f3a5138683164e90c16ab64e 100644 (file)
@@ -16,8 +16,7 @@
 #include "Interpreter.h"
 #include "llvm/Module.h"
 #include "llvm/DerivedTypes.h"
-
-namespace llvm {
+using namespace llvm;
 
 /// create - Create a new interpreter object.  This can never fail.
 ///
@@ -100,4 +99,3 @@ GenericValue Interpreter::run(Function *F,
   return rv;
 }
 
-} // End llvm namespace