summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-01 11:17:13 +0000
committerChris Lattner <sabre@nondot.org>2004-05-01 11:17:13 +0000
commit490e804a4e5b19ee972d6d22b994a6d525f649f3 (patch)
tree508da5a7940e3137efecff6042d6d20ae03b3fe6 /llvm/lib
parent2d7efbbb93cf2a19f5654cace76f654f93bcab4b (diff)
downloadbcm5719-llvm-490e804a4e5b19ee972d6d22b994a6d525f649f3.tar.gz
bcm5719-llvm-490e804a4e5b19ee972d6d22b994a6d525f649f3.zip
Add a constructor that got lost
llvm-svn: 13297
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetSchedInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetSchedInfo.cpp b/llvm/lib/Target/TargetSchedInfo.cpp
index a4a27e7103f..1f5a57d10ca 100644
--- a/llvm/lib/Target/TargetSchedInfo.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud