summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2018-09-27 22:20:33 +0000
committerDerek Schuff <dschuff@google.com>2018-09-27 22:20:33 +0000
commit70ce1af9fa53f23c4cb9a104c493e09fbdabcafc (patch)
tree7e57a04a7c4a599cc24eb564563c31611ee449d7 /llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
parent6911bfe2634e1cf180699ab0f977f04e8bb066db (diff)
downloadbcm5719-llvm-70ce1af9fa53f23c4cb9a104c493e09fbdabcafc.tar.gz
bcm5719-llvm-70ce1af9fa53f23c4cb9a104c493e09fbdabcafc.zip
WebAssembly: Rename GetSignature to GetLibcallSignature [NFC]
llvm-svn: 343275
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp16
1 files changed, 9 insertions, 7 deletions
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<wasm::ValType> &Rets,
- SmallVectorImpl<wasm::ValType> &Params) {
+void llvm::GetLibcallSignature(const WebAssemblySubtarget &Subtarget,
+ RTLIB::Libcall LC,
+ SmallVectorImpl<wasm::ValType> &Rets,
+ SmallVectorImpl<wasm::ValType> &Params) {
assert(Rets.empty());
assert(Params.empty());
@@ -831,11 +832,12 @@ void llvm::GetSignature(const WebAssemblySubtarget &Subtarget,
static ManagedStatic<StaticLibcallNameMap> 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<wasm::ValType> &Rets,
- SmallVectorImpl<wasm::ValType> &Params) {
+void llvm::GetLibcallSignature(const WebAssemblySubtarget &Subtarget,
+ const char *Name,
+ SmallVectorImpl<wasm::ValType> &Rets,
+ SmallVectorImpl<wasm::ValType> &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);
}
OpenPOWER on IntegriCloud