Merge code used to get section start and section end pointers
for SanitizerCoverage constructors. This includes code that handles
getting the start pointers when targeting MSVC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Please take a look at this NFC.
It merges code from the two places where we were getting section start and end pointers.
Though @kcc only asked for merging the code handling the start pointers on Windows, I decided to combine other nearby duplicated code.
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp | ||
---|---|---|
267 ↗ | (On Diff #169479) | I think it is correct to use this IRB instead of the one from runOnModule, but please let me know if I am wrong. |
271 ↗ | (On Diff #169479) | clang-format-diff.py made this change. I can add the extra newline back if wanted. |