clean Lanai namespace

Summary: This patch cleans the namespace of the Lanai target.

Reviewers: jpienaar

Reviewed By: jpienaar

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D30955

llvm-svn: 298015
This commit is contained in:
Jacques Pienaar 2017-03-16 23:22:10 +00:00
parent 78d15af1fa
commit da9352c173
2 changed files with 4 additions and 4 deletions

View File

@ -1096,7 +1096,7 @@ StringRef LanaiAsmParser::splitMnemonic(StringRef Name, SMLoc NameLoc,
return Mnemonic; return Mnemonic;
} }
bool IsMemoryAssignmentError(const OperandVector &Operands) { static bool IsMemoryAssignmentError(const OperandVector &Operands) {
// Detects if a memory operation has an erroneous base register modification. // Detects if a memory operation has an erroneous base register modification.
// Memory operations are detected by matching the types of operands. // Memory operations are detected by matching the types of operands.
// //

View File

@ -89,7 +89,7 @@ public:
} // end anonymous namespace } // end anonymous namespace
Lanai::Fixups FixupKind(const MCExpr *Expr) { static Lanai::Fixups FixupKind(const MCExpr *Expr) {
if (isa<MCSymbolRefExpr>(Expr)) if (isa<MCSymbolRefExpr>(Expr))
return Lanai::FIXUP_LANAI_21; return Lanai::FIXUP_LANAI_21;
if (const LanaiMCExpr *McExpr = dyn_cast<LanaiMCExpr>(Expr)) { if (const LanaiMCExpr *McExpr = dyn_cast<LanaiMCExpr>(Expr)) {
@ -134,8 +134,8 @@ unsigned LanaiMCCodeEmitter::getMachineOpValue(
} }
// Helper function to adjust P and Q bits on load and store instructions. // Helper function to adjust P and Q bits on load and store instructions.
unsigned adjustPqBits(const MCInst &Inst, unsigned Value, unsigned PBitShift, static unsigned adjustPqBits(const MCInst &Inst, unsigned Value,
unsigned QBitShift) { unsigned PBitShift, unsigned QBitShift) {
const MCOperand AluOp = Inst.getOperand(3); const MCOperand AluOp = Inst.getOperand(3);
unsigned AluCode = AluOp.getImm(); unsigned AluCode = AluOp.getImm();