mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user