mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8522e38c1b
commit
e1cc79f1cf
@ -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
|
|
||||||
|
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user