Remove deprecated getNameAsCString methods.
llvm-svn: 161044
This commit is contained in:
parent
5007bb6c0b
commit
1bbcbd0187
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue