[lld] r322745 - [WebAssembly] Remove DEBUG_FUNCTION_NAME after llvm change
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 11:35:16 PST 2018
Author: sbc
Date: Wed Jan 17 11:35:16 2018
New Revision: 322745
URL: http://llvm.org/viewvc/llvm-project?rev=322745&view=rev
Log:
[WebAssembly] Remove DEBUG_FUNCTION_NAME after llvm change
Patch by Nicholas Wilson!
Differential Revision: https://reviews.llvm.org/D42193
Modified:
lld/trunk/test/wasm/archive.ll
lld/trunk/wasm/InputFiles.cpp
Modified: lld/trunk/test/wasm/archive.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/wasm/archive.ll?rev=322745&r1=322744&r2=322745&view=diff
==============================================================================
--- lld/trunk/test/wasm/archive.ll (original)
+++ lld/trunk/test/wasm/archive.ll Wed Jan 17 11:35:16 2018
@@ -27,10 +27,7 @@ entry:
; correctly.
; CHECK: 00000003 T _start
-; CHECK-NEXT: 00000003 T _start
; CHECK-NEXT: 00000001 T bar
-; CHECK-NEXT: 00000001 T bar
-; CHECK-NEXT: 00000002 T foo
; CHECK-NEXT: 00000002 T foo
; Verify that symbols from unused objects don't appear in the symbol table
Modified: lld/trunk/wasm/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputFiles.cpp?rev=322745&r1=322744&r2=322745&view=diff
==============================================================================
--- lld/trunk/wasm/InputFiles.cpp (original)
+++ lld/trunk/wasm/InputFiles.cpp Wed Jan 17 11:35:16 2018
@@ -252,9 +252,6 @@ void ObjFile::initializeSymbols() {
case WasmSymbol::SymbolType::GLOBAL_IMPORT:
S = createUndefined(WasmSym, Symbol::Kind::UndefinedGlobalKind);
break;
- case WasmSymbol::SymbolType::DEBUG_FUNCTION_NAME:
- // These are for debugging only, no need to create linker symbols for them
- continue;
}
Symbols.push_back(S);
More information about the llvm-commits
mailing list