Patch updates the version script parser to parse versioned files.
In a simple way, just adding them to VersionScriptGlobals list.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Can you organize this as a part of recursive descendant parser? You can create a function parseVersion and do something like this.
if (peek() == "{") { parseVersin(); if (!atEOF()) setError("anonymous version definition is used in combination with other version definitions"); return; } while (!atEOF()) { StringRef Version = next(); parseVersion(); }
Comment Actions
LGTM with nits.
ELF/SymbolListFile.cpp | ||
---|---|---|
111 | I'd call it Msg. Acutally, my preference is to use goto to jump to the end of the function and call setError("anonymous version def..."), but probably there are many people who don't like it, so I'm okay with this. | |
122 | Let's return after setError(). (And remove else.) |
I'd call it Msg.
Acutally, my preference is to use goto to jump to the end of the function and call setError("anonymous version def..."), but probably there are many people who don't like it, so I'm okay with this.