From f7ccbad5d9949e7ddd1cbef43d482553b811e026 Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Sun, 5 Feb 2012 02:13:05 +0000 Subject: 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.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149799 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index ea1d94d7c2..a35cd7eb94 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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(ND)) getCXXABI().getMangleContext().mangleCXXCtor(D, GD.getCtorType(), Out); @@ -1779,7 +1779,7 @@ GetConstantCFStringEntry(llvm::StringMap &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]; -- cgit v1.2.3-70-g09d2