Remove using declarations

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6306 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-05-22 22:00:07 +00:00
parent 01e770a9e5
commit de579f11ff
5 changed files with 36 additions and 49 deletions

View File

@ -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 @@ namespace {
// 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);