mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 23:45:25 +08:00
[WebAssembly] Remove redundant check global output index
llvm-svn: 324715
This commit is contained in:
@@ -77,7 +77,7 @@ uint32_t ObjFile::relocateTableIndex(uint32_t Original) const {
|
||||
|
||||
uint32_t ObjFile::relocateGlobalIndex(uint32_t Original) const {
|
||||
const Symbol *Sym = getGlobalSymbol(Original);
|
||||
uint32_t Index = Sym->hasOutputIndex() ? Sym->getOutputIndex() : 0;
|
||||
uint32_t Index = Sym->getOutputIndex();
|
||||
DEBUG(dbgs() << "relocateGlobalIndex: " << toString(*Sym) << ": " << Original
|
||||
<< " -> " << Index << "\n");
|
||||
return Index;
|
||||
|
||||
Reference in New Issue
Block a user