[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 | ||
314 | Don't forget end-to-end tests for both cases (esp and non-esp), i.e. omit-frame-pointer and no-omit-frame-pointer. | |
554 | 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 | ||
554 | 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 | ||
46 | attribute 1 and 3 seem to be unused | |
50 | remove this, and all !srcloc. |
LGTM
test/Instrumentation/AddressSanitizer/X86/asm_cfi.ll | ||
---|---|---|
45 | Please remove "stack-protector-buffer-size"="8", too. |
Please add a comment.
How does it behave when parsing top-level asm?