[asan-assembly-instrumentation] Added CFI directives to the generated instrumentation code.
Details
Diff Detail
Event Timeline
include/llvm/MC/MCTargetAsmParser.h | ||
---|---|---|
126 | Please add a comment. | |
lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp | ||
316 | Don't forget end-to-end tests for both cases (esp and non-esp), i.e. omit-frame-pointer and no-omit-frame-pointer. | |
557 | Is it the right way to obtain MCRegisterInfo? |
PTAL
End-to-end test is added in http://reviews.llvm.org/D5260.
include/llvm/MC/MCTargetAsmParser.h | ||
---|---|---|
126 | Done. | |
lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp | ||
557 | It seems that it's possible to get MCRegisterInfo from MCContext, thanks! |
include/llvm/MC/MCTargetAsmParser.h | ||
---|---|---|
127 | It's better to document what the function does (or does not do), rather then when it is called. | |
test/Instrumentation/AddressSanitizer/X86/asm_cfi.ll | ||
45 ↗ | (On Diff #13446) | attribute 1 and 3 seem to be unused |
49 ↗ | (On Diff #13446) | remove this, and all !srcloc. |
LGTM
test/Instrumentation/AddressSanitizer/X86/asm_cfi.ll | ||
---|---|---|
45 ↗ | (On Diff #13449) | Please remove "stack-protector-buffer-size"="8", too. |
Many thanks!
test/Instrumentation/AddressSanitizer/X86/asm_cfi.ll | ||
---|---|---|
45 ↗ | (On Diff #13449) | Done. |
Please add a comment.
How does it behave when parsing top-level asm?