summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-12-07 03:51:37 +0000
committerSam Clegg <sbc@chromium.org>2017-12-07 03:51:37 +0000
commit80cfdd6b566f370da374806e217c09be12f12c1c (patch)
tree1053663c2c1e61fce676c8c409f6111925b210cc
parent892b14658e7f53740fe5ba9abe4fd2dd66ebebd7 (diff)
downloadbcm5719-llvm-80cfdd6b566f370da374806e217c09be12f12c1c.tar.gz
bcm5719-llvm-80cfdd6b566f370da374806e217c09be12f12c1c.zip
[WebAssembly] Remove used variable
llvm-svn: 320007
-rw-r--r--lld/wasm/Config.h1
-rw-r--r--lld/wasm/Driver.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/lld/wasm/Config.h b/lld/wasm/Config.h
index 72465724e3e..82f49ce175b 100644
--- a/lld/wasm/Config.h
+++ b/lld/wasm/Config.h
@@ -39,7 +39,6 @@ struct Configuration {
llvm::StringSet<> AllowUndefinedSymbols;
std::vector<llvm::StringRef> SearchPaths;
- std::vector<Symbol *> SyntheticGlobals;
Symbol *StackPointerSymbol = nullptr;
};
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 0b9653d9141..2858f68397b 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -142,7 +142,6 @@ static Symbol* addSyntheticGlobal(StringRef Name, int32_t Value) {
log("injecting global: " + Name);
Symbol *S = Symtab->addDefinedGlobal(Name);
S->setVirtualAddress(Value);
- Config->SyntheticGlobals.emplace_back(S);
return S;
}
OpenPOWER on IntegriCloud