Add findFunctionInfoList() accessor to FunctionInfoIndex.
[oota-llvm.git] / include / llvm / IR / FunctionInfo.h
index 3749212c9bead61cd6b3bac14e18fdfbc2084bc7..b8801693ab51a875122ef4ffb9b282104c03ea5e 100644 (file)
@@ -194,6 +194,11 @@ public:
     return FunctionMap[FuncName];
   }
 
+  /// Get the list of function info objects for a given function.
+  const const_funcinfo_iterator findFunctionInfoList(StringRef FuncName) const {
+    return FunctionMap.find(FuncName);
+  }
+
   /// Add a function info for a function of the given name.
   void addFunctionInfo(StringRef FuncName, std::unique_ptr<FunctionInfo> Info) {
     // Update the HasExportedFunctions flag, but only if we had a function