Remove deprecated getNameAsCString methods.

llvm-svn: 161044
This commit is contained in:
Benjamin Kramer 2012-07-31 11:45:39 +00:00
parent 5007bb6c0b
commit 1bbcbd0187
2 changed files with 1 additions and 19 deletions

View File

@ -1524,15 +1524,6 @@ public:
return Id ? Id->getNameStart() : ""; return Id ? Id->getNameStart() : "";
} }
/// getNameAsCString - Get the name of identifier for the class
/// interface associated with this implementation as a C string
/// (const char*).
//
// FIXME: Deprecated, move clients to getName().
const char *getNameAsCString() const {
return Id ? Id->getNameStart() : "";
}
/// @brief Get the name of the class associated with this interface. /// @brief Get the name of the class associated with this interface.
// //
// FIXME: Deprecated, move clients to getName(). // FIXME: Deprecated, move clients to getName().
@ -1653,15 +1644,6 @@ public:
return getIdentifier()->getName(); return getIdentifier()->getName();
} }
/// getNameAsCString - Get the name of identifier for the class
/// interface associated with this implementation as a C string
/// (const char*).
//
// FIXME: Move to StringRef API.
const char *getNameAsCString() const {
return getName().data();
}
/// @brief Get the name of the class associated with this interface. /// @brief Get the name of the class associated with this interface.
// //
// FIXME: Move to StringRef API. // FIXME: Move to StringRef API.

View File

@ -2515,7 +2515,7 @@ llvm::Constant *CGObjCMac::EmitMetaClass(const ObjCImplementationDecl *ID,
Values); Values);
std::string Name("\01L_OBJC_METACLASS_"); std::string Name("\01L_OBJC_METACLASS_");
Name += ID->getNameAsCString(); Name += ID->getName();
// Check for a forward reference. // Check for a forward reference.
llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name); llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);