mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +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/Module.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace llvm {
|
||||
|
||||
typedef std::vector<Constant *> GVVectorTy;
|
||||
|
||||
class InternalGlobalMapper : public ModulePass {
|
||||
public:
|
||||
bool runOnModule(Module &M);
|
||||
};
|
||||
namespace {
|
||||
struct InternalGlobalMapper : public ModulePass {
|
||||
bool runOnModule(Module &M);
|
||||
};
|
||||
}
|
||||
|
||||
ModulePass *llvm::createInternalGlobalMapperPass() {
|
||||
return new InternalGlobalMapper();
|
||||
namespace llvm {
|
||||
ModulePass *createInternalGlobalMapperPass() {
|
||||
return new InternalGlobalMapper();
|
||||
}
|
||||
}
|
||||
|
||||
static void maybeAddInternalValueToVector (GVVectorTy &Vector, GlobalValue &GV){
|
||||
@ -80,5 +80,3 @@ bool InternalGlobalMapper::runOnModule(Module &M) {
|
||||
|
||||
return true; // Module was modified.
|
||||
}
|
||||
|
||||
} // end namespace llvm
|
||||
|
Loading…
Reference in New Issue
Block a user