Removes one subprocess and one temp file from the build for each tablegen invocation.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/TableGen/Main.cpp | ||
|---|---|---|
| 113 | Not sure if we should even have a --write-if-changed flag instead of doing this unconditionally, since we always pass the flag. | |
| lib/TableGen/Main.cpp | ||
|---|---|---|
| 110–112 | A variable name like ExistingOrError might be better here, and we could probably write it like: bool OutputChanged = true; if (auto ExistingOrErr = MemoryBuffer::getFile(OutputFilename)) OutputChanged = std::move(ExistingOrErr)->getBuffer() != Out.str(); | |
| 113 | I'm in favor of removing the option and doing this unconditionally. | |
A variable name like ExistingOrError might be better here, and we could probably write it like: