]> granicus.if.org Git - clang/commitdiff
Remove deprecated getNameAsCString methods.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 31 Jul 2012 11:45:39 +0000 (11:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 31 Jul 2012 11:45:39 +0000 (11:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161044 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h
lib/CodeGen/CGObjCMac.cpp

index 42dd5a3a273479f62caead4b7f67bcfbc2a2fc31..6c39f2c3abe1bdf7b81df7745a8b3a8e96800288 100644 (file)
@@ -1524,15 +1524,6 @@ public:
     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.
   //
   // FIXME: Deprecated, move clients to getName().
@@ -1653,15 +1644,6 @@ public:
     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.
   //
   // FIXME: Move to StringRef API.
index 864b4ebe1f1e71b8c8d3407360eb22a926ec12fb..ef802a3ed0ca515551ca7d4c5a94bf4659b79341 100644 (file)
@@ -2515,7 +2515,7 @@ llvm::Constant *CGObjCMac::EmitMetaClass(const ObjCImplementationDecl *ID,
                                                    Values);
 
   std::string Name("\01L_OBJC_METACLASS_");
-  Name += ID->getNameAsCString();
+  Name += ID->getName();
 
   // Check for a forward reference.
   llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);