Reformat some stuff I missed in recent previous commits

llvm-svn: 219356
This commit is contained in:
David Blaikie 2014-10-08 23:09:42 +00:00
parent afe6707e09
commit 33702a31e8
2 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,7 @@ template <class T> iterator_range<T> make_range(T x, T y) {
return iterator_range<T>(std::move(x), std::move(y));
}
template<typename T> iterator_range<T> make_range(std::pair<T, T> p) {
template <typename T> iterator_range<T> make_range(std::pair<T, T> p) {
return iterator_range<T>(std::move(p.first), std::move(p.second));
}
}

View File

@ -660,10 +660,12 @@ public:
const MCSymbol *getFunctionBeginSym() const { return FunctionBeginSym; }
const MCSymbol *getFunctionEndSym() const { return FunctionEndSym; }
iterator_range<ImportedEntityMap::const_iterator> findImportedEntitiesForScope(const MDNode *Scope) const {
iterator_range<ImportedEntityMap::const_iterator>
findImportedEntitiesForScope(const MDNode *Scope) const {
return make_range(std::equal_range(
ScopesWithImportedEntities.begin(), ScopesWithImportedEntities.end(),
std::pair<const MDNode *, const MDNode *>(Scope, nullptr), less_first()));
std::pair<const MDNode *, const MDNode *>(Scope, nullptr),
less_first()));
}
/// \brief A helper function to check whether the DIE for a given Scope is