1
0
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:
Benjamin Kramer 2016-05-27 10:06:27 +00:00
parent 58775f45b6
commit 1879abe239
2 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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