From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- llvm/lib/Target/Mips/Mips16HardFloat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Target/Mips/Mips16HardFloat.cpp') diff --git a/llvm/lib/Target/Mips/Mips16HardFloat.cpp b/llvm/lib/Target/Mips/Mips16HardFloat.cpp index e9a3c7ec4b190..cc1f72c036323 100644 --- a/llvm/lib/Target/Mips/Mips16HardFloat.cpp +++ b/llvm/lib/Target/Mips/Mips16HardFloat.cpp @@ -43,7 +43,7 @@ namespace { } // end anonymous namespace -static void EmitInlineAsm(LLVMContext &C, BasicBlock *BB, StringRef AsmText) { +static void emitInlineAsm(LLVMContext &C, BasicBlock *BB, StringRef AsmText) { std::vector AsmArgTypes; std::vector AsmArgs; @@ -260,7 +260,7 @@ static void assureFPCallStub(Function &F, Module *M, return; LLVMContext &Context = M->getContext(); bool LE = TM.isLittleEndian(); - std::string Name = F.getName(); + std::string Name(F.getName()); std::string SectionName = ".mips16.call.fp." + Name; std::string StubName = "__call_stub_fp_" + Name; // @@ -339,7 +339,7 @@ static void assureFPCallStub(Function &F, Module *M, AsmText += "jr $$18\n"; else AsmText += "jr $$25\n"; - EmitInlineAsm(Context, BB, AsmText); + emitInlineAsm(Context, BB, AsmText); new UnreachableInst(Context, BB); } @@ -448,7 +448,7 @@ static void createFPFnStub(Function *F, Module *M, FPParamVariant PV, bool PicMode = TM.isPositionIndependent(); bool LE = TM.isLittleEndian(); LLVMContext &Context = M->getContext(); - std::string Name = F->getName(); + std::string Name(F->getName()); std::string SectionName = ".mips16.fn." + Name; std::string StubName = "__fn_stub_" + Name; std::string LocalName = "$$__fn_local_" + Name; @@ -475,7 +475,7 @@ static void createFPFnStub(Function *F, Module *M, FPParamVariant PV, AsmText += swapFPIntParams(PV, M, LE, false); AsmText += "jr $$25\n"; AsmText += LocalName + " = " + Name + "\n"; - EmitInlineAsm(Context, BB, AsmText); + emitInlineAsm(Context, BB, AsmText); new UnreachableInst(FStub->getContext(), BB); } -- cgit v1.2.3