Basic: import SmallString<> into clang namespace
(I was going to fix the TODO about DenseMap too, but that would break self-host right now. See PR11922.) llvm-svn: 149799
This commit is contained in:
@@ -317,7 +317,7 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
|
||||
return Str;
|
||||
}
|
||||
|
||||
llvm::SmallString<256> Buffer;
|
||||
SmallString<256> Buffer;
|
||||
llvm::raw_svector_ostream Out(Buffer);
|
||||
if (const CXXConstructorDecl *D = dyn_cast<CXXConstructorDecl>(ND))
|
||||
getCXXABI().getMangleContext().mangleCXXCtor(D, GD.getCtorType(), Out);
|
||||
@@ -1779,7 +1779,7 @@ GetConstantCFStringEntry(llvm::StringMap<llvm::Constant*> &Map,
|
||||
// order.
|
||||
//
|
||||
// FIXME: This isn't something we should need to do here.
|
||||
llvm::SmallString<128> AsBytes;
|
||||
SmallString<128> AsBytes;
|
||||
AsBytes.reserve(StringLength * 2);
|
||||
for (unsigned i = 0; i != StringLength; ++i) {
|
||||
unsigned short Val = ToBuf[i];
|
||||
|
||||
Reference in New Issue
Block a user