[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Interpreter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Dec 14 17:26:01 PST 2003
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
ExternalFunctions.cpp updated: 1.70 -> 1.71
Interpreter.cpp updated: 1.17 -> 1.18
---
Log message:
Finegrainify namespacification
---
Diffs of the changes: (+2 -24)
Index: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.70 llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.71
--- llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.70 Fri Dec 12 09:38:06 2003
+++ llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Sun Dec 14 17:25:48 2003
@@ -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 @@
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 @@
FuncNames["lle_X_llvm.va_copy"] = llvm_va_copy;
}
-} // End llvm namespace
Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.17 llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.18
--- llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.17 Tue Nov 11 16:41:33 2003
+++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp Sun Dec 14 17:25:48 2003
@@ -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 @@
return rv;
}
-} // End llvm namespace
More information about the llvm-commits
mailing list