[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 22 17:01:08 PDT 2003
Changes in directory llvm/lib/Transforms/Instrumentation:
EmitFunctions.cpp updated: 1.6 -> 1.7
---
Log message:
Remove using declarations
---
Diffs of the changes:
Index: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
diff -u llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.6 llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.7
--- llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.6 Wed Apr 16 15:28:40 2003
+++ llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp Thu May 22 17:00:05 2003
@@ -9,8 +9,6 @@
#include "llvm/Module.h"
#include "llvm/Pass.h"
-using std::vector;
-
namespace {
struct EmitFunctionTable : public Pass {
bool run(Module &M);
@@ -21,13 +19,12 @@
// Per Module pass for inserting function table
bool EmitFunctionTable::run(Module &M){
- vector<const Type*> vType;
- vector<Constant *> vConsts;
- for(Module::iterator MI = M.begin(), ME = M.end(); MI!=ME; ++MI)
+ std::vector<const Type*> vType;
+ std::vector<Constant *> vConsts;
+ for(Module::iterator MI = M.begin(), ME = M.end(); MI != ME; ++MI)
if (!MI->isExternal()) {
- ConstantPointerRef *CP = ConstantPointerRef::get(MI);
vType.push_back(MI->getType());
- vConsts.push_back(CP);
+ vConsts.push_back(ConstantPointerRef::get(MI));
}
StructType *sttype = StructType::get(vType);
More information about the llvm-commits
mailing list