[PATCH] [compiler-rt] Don't instrument globals from __objc_classname
David Majnemer
david.majnemer at gmail.com
Tue Dec 2 18:42:25 PST 2014
================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:1068
@@ -1068,1 +1067,3 @@
+ if (Section.startswith("__TEXT,") &&
+ Section.endswith(",cstring_literals")) {
DEBUG(dbgs() << "Ignoring a cstring literal: " << *G << "\n");
----------------
This is not reliable, it could end with ", cstring_literals".
Can you please use `MCSectionMachO::ParseSectionSpecifier` to parse the section string instead?
http://reviews.llvm.org/D6488
More information about the llvm-commits
mailing list