[llvm] r187001 - Remove unused function.

Eric Christopher echristo at gmail.com
Tue Jul 23 15:50:42 PDT 2013


Author: echristo
Date: Tue Jul 23 17:50:42 2013
New Revision: 187001

URL: http://llvm.org/viewvc/llvm-project?rev=187001&view=rev
Log:
Remove unused function.

Modified:
    llvm/trunk/include/llvm/DebugInfo.h
    llvm/trunk/lib/IR/DebugInfo.cpp

Modified: llvm/trunk/include/llvm/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo.h?rev=187001&r1=187000&r2=187001&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/DebugInfo.h Tue Jul 23 17:50:42 2013
@@ -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;
   };

Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=187001&r1=187000&r2=187001&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Tue Jul 23 17:50:42 2013
@@ -670,13 +670,6 @@ Value *DITemplateValueParameter::getValu
   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();





More information about the llvm-commits mailing list