From: Eric Christopher Date: Tue, 23 Jul 2013 22:50:42 +0000 (+0000) Subject: Remove unused function. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d2b82e9bb37699c7571558aa5d35e00f8030028f;p=oota-llvm.git Remove unused function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187001 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 7064395baf5..0911ec88b8b 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -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; }; diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 188c32d3ca6..1168ef3c94f 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -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();