[PATCH] [asan-asm-instrumentation] CFI directives are generated for .S files.
Yuri Gorshenin
ygorshenin at chromium.org
Tue Oct 7 04:10:21 PDT 2014
Many thanks, Eugene and Rafael!
================
Comment at: lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp:868
@@ +867,3 @@
+
+ if (InitialFrameReg != X86::NoRegister) {
+ // FrameReg is set explicitly, we're instrumenting a MachineFunction.
----------------
rafael wrote:
> The X86::NoRegister in here is the 0 in CurrentCfaRegister(0), no? I would probably be cleaner no just use 0 everywhere.
>
> This could also be an assert now, no? The initial instructions should always be setting the initial frame register.
Done.
http://reviews.llvm.org/D5520
More information about the llvm-commits
mailing list