aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/SampleProfReader.cpp
diff options
context:
space:
mode:
authorJulian Lettner <julian.lettner@apple.com>2020-03-30 21:35:42 -0700
committerJulian Lettner <julian.lettner@apple.com>2020-03-30 21:58:48 -0700
commit1e8900cc828bd62fdcc314283c991080bae4520c (patch)
tree0a53a94027c0b4d0b4366a79aab2720f32d97ca6 /llvm/lib/ProfileData/SampleProfReader.cpp
parentf3c329986cf4349eb45a3e551f936d2b01a03ed5 (diff)
downloadllvm-1e8900cc828bd62fdcc314283c991080bae4520c.zip
llvm-1e8900cc828bd62fdcc314283c991080bae4520c.tar.gz
llvm-1e8900cc828bd62fdcc314283c991080bae4520c.tar.bz2
[lit] Fix test that relied on "single process" mode
The shtest-inject test relied on being executed in "single process" mode and started to fail with a `PicklingError` after it was removed: ``` Can't pickle <class 'lit.TestingConfig.CustomFormat'>: attribute lookup lit.TestingConfig.CustomFormat failed ``` This happened because the test config has to be serialized to the worker process, but apparently the `CustomFormat` class defined inline is not serializable. This change allows passing the tested functionality (preamble_commands) directly to `lit.formats.ShTest` so we can use it directly in the test.
Diffstat (limited to 'llvm/lib/ProfileData/SampleProfReader.cpp')
0 files changed, 0 insertions, 0 deletions