mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
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