Remove unused function.
authorEric Christopher <echristo@gmail.com>
Tue, 23 Jul 2013 22:50:42 +0000 (22:50 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 23 Jul 2013 22:50:42 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187001 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h
lib/IR/DebugInfo.cpp

index 7064395baf5f695581c98f355e752bf2089cd4f4..0911ec88b8b459075443fa94ef3943ecad8b5227 100644 (file)
@@ -196,9 +196,6 @@ namespace llvm {
   public:
     explicit DIScope(const MDNode *N = 0) : DIDescriptor (N) {}
 
-    /// Set the filename by allocating a new string MDNode for
-    /// it and attaching it to the underlying node.
-    void setFilename(StringRef Name, LLVMContext &Context);
     StringRef getFilename() const;
     StringRef getDirectory() const;
   };
index 188c32d3ca6fd1af270f3aa8e0b34538550fd259..1168ef3c94f46c989e0ed096810fab894b85728a 100644 (file)
@@ -670,13 +670,6 @@ Value *DITemplateValueParameter::getValue() const {
   return getField(DbgNode, 4);
 }
 
-void DIScope::setFilename(StringRef Name, LLVMContext &Context) {
-  if (!DbgNode)
-    return;
-  MDString *MDName(MDString::get(Context, Name));
-  getNodeField(DbgNode, 1)->replaceOperandWith(0, MDName);
-}
-
 StringRef DIScope::getFilename() const {
   if (!DbgNode)
     return StringRef();