[asan] fix lint
[oota-llvm.git] / lib / Transforms / Instrumentation / BlackList.cpp
index ecfe954dec19e3e191ebb251d82614a7b973aaed..2cb119964a3d28cf9c42c85331e8e2111ea5bc69 100644 (file)
@@ -89,6 +89,10 @@ bool BlackList::isIn(const Module &M) {
   return inSection("src", M.getModuleIdentifier());
 }
 
+bool BlackList::isInInit(const GlobalVariable &G) {
+  return isIn(*G.getParent()) || inSection("global-init", G.getName());
+}
+
 bool BlackList::inSection(const StringRef Section,
                                   const StringRef Query) {
   Regex *FunctionRegex = Entries[Section];