Finegrainify namespacification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-11-30 06:13:25 +00:00
parent 8522e38c1b
commit e1cc79f1cf
2 changed files with 4 additions and 8 deletions

View File

@ -14,8 +14,7 @@
#include "X86.h" #include "X86.h"
#include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineInstrBuilder.h"
using namespace llvm;
namespace llvm {
namespace { namespace {
struct PH : public MachineFunctionPass { struct PH : public MachineFunctionPass {
@ -28,7 +27,7 @@ namespace {
}; };
} }
FunctionPass *createX86PeepholeOptimizerPass() { return new PH(); } FunctionPass *llvm::createX86PeepholeOptimizerPass() { return new PH(); }
bool PH::runOnMachineFunction(MachineFunction &MF) { bool PH::runOnMachineFunction(MachineFunction &MF) {
bool Changed = false; bool Changed = false;
@ -134,4 +133,3 @@ bool PH::PeepholeOptimize(MachineBasicBlock &MBB,
} }
} }
} // End llvm namespace

View File

@ -14,8 +14,7 @@
#include "X86.h" #include "X86.h"
#include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineInstrBuilder.h"
using namespace llvm;
namespace llvm {
namespace { namespace {
struct PH : public MachineFunctionPass { struct PH : public MachineFunctionPass {
@ -28,7 +27,7 @@ namespace {
}; };
} }
FunctionPass *createX86PeepholeOptimizerPass() { return new PH(); } FunctionPass *llvm::createX86PeepholeOptimizerPass() { return new PH(); }
bool PH::runOnMachineFunction(MachineFunction &MF) { bool PH::runOnMachineFunction(MachineFunction &MF) {
bool Changed = false; bool Changed = false;
@ -134,4 +133,3 @@ bool PH::PeepholeOptimize(MachineBasicBlock &MBB,
} }
} }
} // End llvm namespace