commit | bb00410a1c771627dff8574ac9cda4f7396d9431 | [log] [tgz] |
---|---|---|
author | David Spickett <david.spickett@linaro.org> | Thu Apr 01 15:30:16 2021 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 12 11:42:16 2021 -0700 |
tree | 439bf78d9a10ec5a69cd9283e231e1b4a9fc2173 | |
parent | 48462640e5f6b25eda3b3c6eeb3c631b3e05c333 [diff] |
[lldb] Improve CPUInfo test predicate Use a with block for reading the cpuinfo file. When loading the file fails (or we're not on Linux) return an empty string. Since all the callers are going to do "x in self.getCPUInfo()". Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D99729 GitOrigin-RevId: f8f4d8f87ba4c1fbb18a4e7f4a5ea03a8b8ec061