Add a constructor that got lost

llvm-svn: 13297
This commit is contained in:
Chris Lattner 2004-05-01 11:17:13 +00:00
parent 2d7efbbb93
commit 490e804a4e
1 changed files with 3 additions and 0 deletions

View File

@ -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