This commit regroups commonalities among InputGlobal, InputEvent, and
InputTable into the new InputDefinition. The subclasses are defined
inline in the new InputDefinition.h. NFC.
Depends on D91870.
Paths
| Differential D94677
[lld][WebAssembly] Common superclass for input globals/events/tables ClosedPublic Authored by wingo on Jan 14 2021, 4:49 AM.
Details Summary This commit regroups commonalities among InputGlobal, InputEvent, and Depends on D91870.
Diff Detail
Event TimelineComment Actions
Ping. Should apply more or less fine to "main". Comment Actions You can add "NFC" to the title to label this as a non-functional change.
This revision now requires changes to proceed.Feb 8 2021, 3:17 PM Comment Actions I see that this is marked changes requested, but I don't understand what changes -- is it InputItem?
Comment Actions lgtm with the base class rename. Regarding the "requested changes" features, I was going through all my outstanding reviews and trying to audit them all. For any issue where the last set of comments were from me I thought it would make sense to mark like this to take it off my incoming queue.
This revision is now accepted and ready to land.Feb 9 2021, 7:49 AM
This revision was landed with ongoing or failed builds.Feb 11 2021, 5:57 AM Closed by commit rGa56e57493b18: [lld][WebAssembly] Common superclass for input globals/events/tables (authored by wingo). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 322973 lld/include/lld/Common/LLVM.h
lld/wasm/Driver.cpp
lld/wasm/InputElement.h
lld/wasm/InputEvent.h
lld/wasm/InputFiles.cpp
lld/wasm/InputGlobal.h
lld/wasm/InputTable.h
lld/wasm/MapFile.cpp
lld/wasm/MarkLive.cpp
lld/wasm/SymbolTable.cpp
lld/wasm/Symbols.cpp
lld/wasm/SyntheticSections.cpp
lld/wasm/Writer.cpp
lld/wasm/WriterUtils.h
lld/wasm/WriterUtils.cpp
|
Is moving this code into a method a separate refactor, or essential to the PR? (Just wondering, not asking you split it out necessarily).
Why make this into its own method? Given that it only has a single call site. I'm mostly curious what your thinking is, not opposed to this.
Do you think its still worth keeping this function now now that its just one line?