mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[sparc] Move LEON passes into llvm namespace.
Also give them library visiblity while there. llvm-svn: 270979
This commit is contained in:
parent
58775f45b6
commit
1879abe239
@ -18,6 +18,7 @@
|
||||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
LEONMachineFunctionPass::LEONMachineFunctionPass(TargetMachine &tm, char& ID) :
|
||||
MachineFunctionPass(ID)
|
||||
|
@ -20,9 +20,9 @@
|
||||
#include "Sparc.h"
|
||||
#include "SparcSubtarget.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
class LEONMachineFunctionPass : public MachineFunctionPass {
|
||||
namespace llvm {
|
||||
class LLVM_LIBRARY_VISIBILITY LEONMachineFunctionPass
|
||||
: public MachineFunctionPass {
|
||||
protected:
|
||||
const SparcSubtarget *Subtarget;
|
||||
|
||||
@ -31,7 +31,7 @@ protected:
|
||||
LEONMachineFunctionPass(char& ID);
|
||||
};
|
||||
|
||||
class InsertNOPLoad : public LEONMachineFunctionPass {
|
||||
class LLVM_LIBRARY_VISIBILITY InsertNOPLoad : public LEONMachineFunctionPass {
|
||||
public:
|
||||
static char ID;
|
||||
|
||||
@ -42,5 +42,6 @@ public:
|
||||
return "InsertNOPLoad: Erratum Fix LBR35: insert a NOP instruction after every single-cycle load instruction when the next instruction is another load/store instruction";
|
||||
}
|
||||
};
|
||||
} // namespace llvm
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user