diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-01 11:17:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-01 11:17:13 +0000 |
commit | 55a4700857ffb64677ac825b553939724e14a0ec (patch) | |
tree | 2a6b0d7be8f959b32bf8397a23850ae1c8cc6960 /lib/Target | |
parent | 3c66c355b6e88407fd77a90bf8be0e2f7297409e (diff) | |
download | external_llvm-55a4700857ffb64677ac825b553939724e14a0ec.zip external_llvm-55a4700857ffb64677ac825b553939724e14a0ec.tar.gz external_llvm-55a4700857ffb64677ac825b553939724e14a0ec.tar.bz2 |
Add a constructor that got lost
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/TargetSchedInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/TargetSchedInfo.cpp b/lib/Target/TargetSchedInfo.cpp index a4a27e7..1f5a57d 100644 --- a/lib/Target/TargetSchedInfo.cpp +++ b/lib/Target/TargetSchedInfo.cpp @@ -19,6 +19,9 @@ namespace llvm { resourceId_t CPUResource::nextId = 0; +CPUResource::CPUResource(const std::string& resourceName, int maxUsers) + : rname(resourceName), rid(nextId++), maxNumUsers(maxUsers) {} + // Check if fromRVec and toRVec have *any* common entries. // Assume the vectors are sorted in increasing order. // Algorithm copied from function set_intersection() for sorted ranges |