summaryrefslogtreecommitdiffstats
path: root/lld/wasm/SymbolTable.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-11-19 23:31:28 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-11-19 23:31:28 +0000
commit6f4286fb975ce9289df0a446911329d0b4669f22 (patch)
tree05118e6cf5e881b7412b97fbc13dd438712bfb8b /lld/wasm/SymbolTable.cpp
parentaeaab9925edbd30c84f52f4f38d001526ecaf8ee (diff)
downloadbcm5719-llvm-6f4286fb975ce9289df0a446911329d0b4669f22.tar.gz
bcm5719-llvm-6f4286fb975ce9289df0a446911329d0b4669f22.zip
[WebAssembly] Fix inaccurate comments / assertion messages
Reviewers: sbc100 Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D54688 llvm-svn: 347273
Diffstat (limited to 'lld/wasm/SymbolTable.cpp')
-rw-r--r--lld/wasm/SymbolTable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/SymbolTable.cpp b/lld/wasm/SymbolTable.cpp
index d1e9c054265..a42e36389a1 100644
--- a/lld/wasm/SymbolTable.cpp
+++ b/lld/wasm/SymbolTable.cpp
@@ -97,6 +97,8 @@ static void reportTypeError(const Symbol *Existing, const InputFile *File,
" in " + toString(File));
}
+// Check the type of new symbol matches that of the symbol is replacing.
+// For functions this can also involve verifying that the signatures match.
static void checkFunctionType(Symbol *Existing, const InputFile *File,
const WasmSignature *NewSig) {
auto ExistingFunction = dyn_cast<FunctionSymbol>(Existing);
@@ -121,8 +123,6 @@ static void checkFunctionType(Symbol *Existing, const InputFile *File,
toString(*NewSig) + " in " + toString(File));
}
-// Check the type of new symbol matches that of the symbol is replacing.
-// For functions this can also involve verifying that the signatures match.
static void checkGlobalType(const Symbol *Existing, const InputFile *File,
const WasmGlobalType *NewType) {
if (!isa<GlobalSymbol>(Existing)) {
OpenPOWER on IntegriCloud