skc7 wrote:

@hctim, 
We want to identify global variables instrumented by asan at AsmPrinter stage. 
I can think of two approaches here: 

- Add SanitizerMetadata::NoAddress(false) at asan pass and also check if global 
is present in llvm.compiler.used list. 

- Create a new attribute (For Ex: "AsanInstrumentedVariable") and attach it to 
instrumented global variable at asan pass. Identify that GV at asmPrinter 
stage, using the attached attribute. 

Please let me know if any of these approaches work here? 

https://github.com/llvm/llvm-project/pull/66666
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to