This is an archive of the discontinued LLVM Phabricator instance.

hwasan: Remove the old frame descriptor mechanism.
ClosedPublic

Authored by pcc on Jun 17 2019, 8:37 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Jun 17 2019, 8:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2019, 8:37 PM
eugenis accepted this revision.Jun 21 2019, 4:09 PM

LGTM

llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
154 ↗(On Diff #205239)

We use this in android (hwasan-create-frame-descriptions=0). Could we keep the flag around for a while?

This revision is now accepted and ready to land.Jun 21 2019, 4:09 PM
pcc marked an inline comment as done.Jun 21 2019, 4:39 PM
pcc added inline comments.
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
154 ↗(On Diff #205239)

Yeah, I needed to hack the flag back in (similar to https://github.com/pcc/llvm-project/commit/576c50647de5bda105cf79e97d30d0f452d7986f) to get the Android build working again. Since there's no guarantee of stability around these flags, maybe Android should be doing something similar in their compiler temporarily?

eugenis added inline comments.Jun 21 2019, 4:48 PM
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
154 ↗(On Diff #205239)

That could be a better option.
In hindsight, we should not have enabled this experimental feature by default.

This revision was automatically updated to reflect the committed changes.
llvm/trunk/test/Instrumentation/HWAddressSanitizer/basic.ll