[llvm] r294281 - AMDGPU: Fix missing static
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 20:37:59 PST 2017
Author: arsenm
Date: Mon Feb 6 22:37:59 2017
New Revision: 294281
URL: http://llvm.org/viewvc/llvm-project?rev=294281&view=rev
Log:
AMDGPU: Fix missing static
Modified:
llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp?rev=294281&r1=294280&r2=294281&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp Mon Feb 6 22:37:59 2017
@@ -2294,9 +2294,10 @@ AMDGPUAsmParser::parseNamedBit(const cha
typedef std::map<enum AMDGPUOperand::ImmTy, unsigned> OptionalImmIndexMap;
-void addOptionalImmOperand(MCInst& Inst, const OperandVector& Operands,
- OptionalImmIndexMap& OptionalIdx,
- AMDGPUOperand::ImmTy ImmT, int64_t Default = 0) {
+static void addOptionalImmOperand(MCInst& Inst, const OperandVector& Operands,
+ OptionalImmIndexMap& OptionalIdx,
+ AMDGPUOperand::ImmTy ImmT,
+ int64_t Default = 0) {
auto i = OptionalIdx.find(ImmT);
if (i != OptionalIdx.end()) {
unsigned Idx = i->second;
More information about the llvm-commits
mailing list