mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Remove extraneous namespacification. In particular, don't define llvm::llvm::createInternalGlobalMapperPass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e35eda519
commit
ee8c9ad8d2
@ -19,21 +19,21 @@
|
|||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/Type.h"
|
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
typedef std::vector<Constant *> GVVectorTy;
|
typedef std::vector<Constant *> GVVectorTy;
|
||||||
|
|
||||||
class InternalGlobalMapper : public ModulePass {
|
namespace {
|
||||||
public:
|
struct InternalGlobalMapper : public ModulePass {
|
||||||
bool runOnModule(Module &M);
|
bool runOnModule(Module &M);
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
ModulePass *llvm::createInternalGlobalMapperPass() {
|
namespace llvm {
|
||||||
return new InternalGlobalMapper();
|
ModulePass *createInternalGlobalMapperPass() {
|
||||||
|
return new InternalGlobalMapper();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void maybeAddInternalValueToVector (GVVectorTy &Vector, GlobalValue &GV){
|
static void maybeAddInternalValueToVector (GVVectorTy &Vector, GlobalValue &GV){
|
||||||
@ -80,5 +80,3 @@ bool InternalGlobalMapper::runOnModule(Module &M) {
|
|||||||
|
|
||||||
return true; // Module was modified.
|
return true; // Module was modified.
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace llvm
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user