[DebugInfo] Delete unused DIVariable::getSource
authorFangrui Song <i@maskray.me>
Fri, 5 Mar 2021 05:53:13 +0000 (21:53 -0800)
committerFangrui Song <i@maskray.me>
Fri, 5 Mar 2021 05:53:13 +0000 (21:53 -0800)
llvm/include/llvm/IR/DebugInfoMetadata.h

index 99f2c83..f10183e 100644 (file)
@@ -3230,12 +3230,6 @@ public:
     return "";
   }
 
-  Optional<StringRef> getSource() const {
-    if (auto *F = getFile())
-      return F->getSource();
-    return None;
-  }
-
   MDString *getRawName() const { return getOperandAs<MDString>(0); }
   Metadata *getRawFile() const { return getOperand(1); }
   MDString *getRawGetterName() const { return getOperandAs<MDString>(2); }