diff options
author | Jianzhou Zhao <jianzhouzh@google.com> | 2021-06-29 06:17:00 +0000 |
---|---|---|
committer | Jianzhou Zhao <jianzhouzh@google.com> | 2021-06-29 20:32:39 +0000 |
commit | ae6648cee01bc5c390b74dacd1851cf5df74599b (patch) | |
tree | 514cb14d63ed2b6af895d59f2249ca9367bac1e5 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 485cc55edfb875628e19bb6d9de4706af2865d3e (diff) | |
download | llvm-ae6648cee01bc5c390b74dacd1851cf5df74599b.zip llvm-ae6648cee01bc5c390b74dacd1851cf5df74599b.tar.gz llvm-ae6648cee01bc5c390b74dacd1851cf5df74599b.tar.bz2 |
[dfsan] Expose dfsan_get_track_origins to get origin tracking status
This allows application code checks if origin tracking is on before
printing out traces.
-dfsan-track-origins can be 0,1,2.
The current code only distinguishes 1 and 2 in compile time, but not at runtime.
Made runtime distinguish 1 and 2 too.
Reviewed By: browneee
Differential Revision: https://reviews.llvm.org/D105128
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions