CodeGen: use StringRefs more in ObjC class generation, NFC
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 16 Jul 2016 22:42:06 +0000 (22:42 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 16 Jul 2016 22:42:06 +0000 (22:42 +0000)
commit10fd1ff56ad6ec66f2b8f95a1ae966884e940d20
treed2a70ffe2121e1b20c1cc01f37ca7cf5deb78719
parentbc2d9998eaca75b817e0000f3fef602942446820
CodeGen: use StringRefs more in ObjC class generation, NFC

Rather than building up a number of SmallString-s in order to construct a
std::string, use more StringRefs and construct the string once before use.  This
avoids unnecessary string constructions.  NFC.

llvm-svn: 275697
clang/lib/CodeGen/CGObjCMac.cpp