Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines

This commit is contained in:
Max Moiseev
2016-01-04 12:25:25 -08:00
1513 changed files with 30863 additions and 11927 deletions

View File

@@ -1,8 +1,8 @@
//===- Generics.cpp ---- Utilities for transforming generics ----*- C++ -*-===//
//===--- Generics.cpp ---- Utilities for transforming generics --*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
@@ -272,13 +272,13 @@ ApplySite swift::trySpecializeApplyOfGeneric(ApplySite Apply,
return ApplySite();
}
llvm::SmallString<64> ClonedName;
std::string ClonedName;
{
llvm::raw_svector_ostream buffer(ClonedName);
ArrayRef<Substitution> Subs = Apply.getSubstitutions();
Mangle::Mangler M(buffer);
Mangle::Mangler M;
GenericSpecializationMangler Mangler(M, F, Subs);
Mangler.mangle();
ClonedName = M.finalize();
}
DEBUG(llvm::dbgs() << " Specialized function " << ClonedName << '\n');