From: Jacques Pienaar Date: Thu, 16 Mar 2017 23:22:10 +0000 (+0000) Subject: clean Lanai namespace X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3fdf49906cd6304a96042f3764653972b14eac3;p=llvm 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298015 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp b/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp index 57ead973b56..1d6c07974be 100644 --- a/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp +++ b/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp @@ -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. // diff --git a/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp b/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp index f5b5335bb98..10254677a5a 100644 --- a/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp +++ b/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp @@ -89,7 +89,7 @@ public: } // end anonymous namespace -Lanai::Fixups FixupKind(const MCExpr *Expr) { +static Lanai::Fixups FixupKind(const MCExpr *Expr) { if (isa(Expr)) return Lanai::FIXUP_LANAI_21; if (const LanaiMCExpr *McExpr = dyn_cast(Expr)) { @@ -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();