mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 08:57:34 +00:00
Add findFunctionInfoList() accessor to FunctionInfoIndex.
Summary: This allows to query for a function in the map without creating an entry, allowing to use a const FunctionInfoIndex. Reviewers: tejohnson Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D14912 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5b07c3686
commit
4857f32de4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user