diff options
Diffstat (limited to 'lld/wasm/InputGlobal.h')
-rw-r--r-- | lld/wasm/InputGlobal.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lld/wasm/InputGlobal.h b/lld/wasm/InputGlobal.h index e008d2ecc3f..89cde8423c8 100644 --- a/lld/wasm/InputGlobal.h +++ b/lld/wasm/InputGlobal.h @@ -22,32 +22,32 @@ namespace wasm { // combined to form the final GLOBALS section. class InputGlobal { public: - InputGlobal(const WasmGlobal &G, ObjFile *F) - : File(F), Global(G), Live(!Config->GcSections) {} + InputGlobal(const WasmGlobal &g, ObjFile *f) + : file(f), global(g), live(!config->gcSections) {} - StringRef getName() const { return Global.SymbolName; } - const WasmGlobalType &getType() const { return Global.Type; } + StringRef getName() const { return global.SymbolName; } + const WasmGlobalType &getType() const { return global.Type; } - uint32_t getGlobalIndex() const { return GlobalIndex.getValue(); } - bool hasGlobalIndex() const { return GlobalIndex.hasValue(); } - void setGlobalIndex(uint32_t Index) { + uint32_t getGlobalIndex() const { return globalIndex.getValue(); } + bool hasGlobalIndex() const { return globalIndex.hasValue(); } + void setGlobalIndex(uint32_t index) { assert(!hasGlobalIndex()); - GlobalIndex = Index; + globalIndex = index; } - ObjFile *File; - WasmGlobal Global; + ObjFile *file; + WasmGlobal global; - bool Live = false; + bool live = false; protected: - llvm::Optional<uint32_t> GlobalIndex; + llvm::Optional<uint32_t> globalIndex; }; } // namespace wasm -inline std::string toString(const wasm::InputGlobal *G) { - return (toString(G->File) + ":(" + G->getName() + ")").str(); +inline std::string toString(const wasm::InputGlobal *g) { + return (toString(g->file) + ":(" + g->getName() + ")").str(); } } // namespace lld |