diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-17 22:39:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-17 22:39:59 +0000 |
commit | 56df97761d214030881efbf7c32cf2cce7f9ea8e (patch) | |
tree | 2fdbf26598f4dea0136644b5791ab69f5b0a1eb5 /clang/lib/CodeGen/CGObjCMac.cpp | |
parent | f346a3dd680d4b72eb6f20a7c05df09202446b80 (diff) | |
download | bcm5719-llvm-56df97761d214030881efbf7c32cf2cce7f9ea8e.tar.gz bcm5719-llvm-56df97761d214030881efbf7c32cf2cce7f9ea8e.zip |
StringRef'ication of lots stuff, patch by Peter Davies!
llvm-svn: 111314
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index c484737c4b5..46c04631a5b 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -3923,7 +3923,7 @@ llvm::Constant *CGObjCCommonMac::BuildIvarLayout( if (CGM.getLangOptions().ObjCGCBitmapPrint) { printf("\n%s ivar layout for class '%s': ", ForStrongLayout ? "strong" : "weak", - OMD->getClassInterface()->getNameAsCString()); + OMD->getClassInterface()->getName().data()); const unsigned char *s = (unsigned char*)BitMap.c_str(); for (unsigned i = 0; i < BitMap.size(); i++) if (!(s[i] & 0xf0)) @@ -5040,7 +5040,7 @@ llvm::Value *CGObjCNonFragileABIMac::GenerateProtocolRef(CGBuilderTy &Builder, ObjCTypes.ExternalProtocolPtrTy); std::string ProtocolName("\01l_OBJC_PROTOCOL_REFERENCE_$_"); - ProtocolName += PD->getNameAsCString(); + ProtocolName += PD->getName(); llvm::GlobalVariable *PTGV = CGM.getModule().getGlobalVariable(ProtocolName); if (PTGV) |