[C++11] Replacing DeclBase iterators specific_attr_begin() and specific_attr_end() with iterator_range specific_attrs(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203474
This commit is contained in:
@@ -1051,10 +1051,8 @@ void CodeGenModule::AddGlobalAnnotations(const ValueDecl *D,
|
||||
llvm::GlobalValue *GV) {
|
||||
assert(D->hasAttr<AnnotateAttr>() && "no annotate attribute");
|
||||
// Get the struct elements for these annotations.
|
||||
for (specific_attr_iterator<AnnotateAttr>
|
||||
ai = D->specific_attr_begin<AnnotateAttr>(),
|
||||
ae = D->specific_attr_end<AnnotateAttr>(); ai != ae; ++ai)
|
||||
Annotations.push_back(EmitAnnotateAttr(GV, *ai, D->getLocation()));
|
||||
for (const auto *I : D->specific_attrs<AnnotateAttr>())
|
||||
Annotations.push_back(EmitAnnotateAttr(GV, I, D->getLocation()));
|
||||
}
|
||||
|
||||
bool CodeGenModule::MayDeferGeneration(const ValueDecl *Global) {
|
||||
|
||||
Reference in New Issue
Block a user