From 70ce1af9fa53f23c4cb9a104c493e09fbdabcafc Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Thu, 27 Sep 2018 22:20:33 +0000 Subject: WebAssembly: Rename GetSignature to GetLibcallSignature [NFC] llvm-svn: 343275 --- llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp | 2 +- .../WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | 16 +++++++++------- .../WebAssembly/WebAssemblyRuntimeLibcallSignatures.h | 17 +++++++++-------- 3 files changed, 19 insertions(+), 16 deletions(-) (limited to 'llvm/lib/Target/WebAssembly') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp index c55308ba116..a52bedd9f29 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp @@ -107,7 +107,7 @@ MCSymbol *WebAssemblyMCInstLower::GetExternalSymbolSymbol( SmallVector Returns; SmallVector Params; - GetSignature(Subtarget, Name, Returns, Params); + GetLibcallSignature(Subtarget, Name, Returns, Params); WasmSym->setReturns(std::move(Returns)); WasmSym->setParams(std::move(Params)); diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp index 5d31fb241ce..6cf81a9d77b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp @@ -485,9 +485,10 @@ struct StaticLibcallNameMap { } // end anonymous namespace -void llvm::GetSignature(const WebAssemblySubtarget &Subtarget, - RTLIB::Libcall LC, SmallVectorImpl &Rets, - SmallVectorImpl &Params) { +void llvm::GetLibcallSignature(const WebAssemblySubtarget &Subtarget, + RTLIB::Libcall LC, + SmallVectorImpl &Rets, + SmallVectorImpl &Params) { assert(Rets.empty()); assert(Params.empty()); @@ -831,11 +832,12 @@ void llvm::GetSignature(const WebAssemblySubtarget &Subtarget, static ManagedStatic LibcallNameMap; // TODO: If the RTLIB::Libcall-taking flavor of GetSignature remains unsed // other than here, just roll its logic into this version. -void llvm::GetSignature(const WebAssemblySubtarget &Subtarget, const char *Name, - SmallVectorImpl &Rets, - SmallVectorImpl &Params) { +void llvm::GetLibcallSignature(const WebAssemblySubtarget &Subtarget, + const char *Name, + SmallVectorImpl &Rets, + SmallVectorImpl &Params) { auto &Map = LibcallNameMap->Map; auto val = Map.find(Name); assert(val != Map.end() && "unexpected runtime library name"); - return GetSignature(Subtarget, val->second, Rets, Params); + return GetLibcallSignature(Subtarget, val->second, Rets, Params); } diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.h b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.h index 2ba65ff5b71..7fa70bea96d 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.h @@ -23,14 +23,15 @@ namespace llvm { class WebAssemblySubtarget; -extern void GetSignature(const WebAssemblySubtarget &Subtarget, - RTLIB::Libcall LC, - SmallVectorImpl &Rets, - SmallVectorImpl &Params); - -extern void GetSignature(const WebAssemblySubtarget &Subtarget, - const char *Name, SmallVectorImpl &Rets, - SmallVectorImpl &Params); +extern void GetLibcallSignature(const WebAssemblySubtarget &Subtarget, + RTLIB::Libcall LC, + SmallVectorImpl &Rets, + SmallVectorImpl &Params); + +extern void GetLibcallSignature(const WebAssemblySubtarget &Subtarget, + const char *Name, + SmallVectorImpl &Rets, + SmallVectorImpl &Params); } // end namespace llvm -- cgit v1.2.3