Skip to content

Commit

Permalink
clean Lanai namespace
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jpienaar committed Mar 16, 2017
1 parent 78d15af commit da9352c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
Expand Up @@ -1096,7 +1096,7 @@ StringRef LanaiAsmParser::splitMnemonic(StringRef Name, SMLoc NameLoc,
return Mnemonic;
}

bool IsMemoryAssignmentError(const OperandVector &Operands) {
static bool IsMemoryAssignmentError(const OperandVector &Operands) {
// Detects if a memory operation has an erroneous base register modification.
// Memory operations are detected by matching the types of operands.
//
Expand Down
6 changes: 3 additions & 3 deletions llvm/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp
Expand Up @@ -89,7 +89,7 @@ class LanaiMCCodeEmitter : public MCCodeEmitter {

} // end anonymous namespace

Lanai::Fixups FixupKind(const MCExpr *Expr) {
static Lanai::Fixups FixupKind(const MCExpr *Expr) {
if (isa<MCSymbolRefExpr>(Expr))
return Lanai::FIXUP_LANAI_21;
if (const LanaiMCExpr *McExpr = dyn_cast<LanaiMCExpr>(Expr)) {
Expand Down Expand Up @@ -134,8 +134,8 @@ unsigned LanaiMCCodeEmitter::getMachineOpValue(
}

// Helper function to adjust P and Q bits on load and store instructions.
unsigned adjustPqBits(const MCInst &Inst, unsigned Value, unsigned PBitShift,
unsigned QBitShift) {
static unsigned adjustPqBits(const MCInst &Inst, unsigned Value,
unsigned PBitShift, unsigned QBitShift) {
const MCOperand AluOp = Inst.getOperand(3);
unsigned AluCode = AluOp.getImm();

Expand Down

0 comments on commit da9352c

Please sign in to comment.