From 063b19dea6991c2bc40bd93f262e20401792822d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 4 Mar 2021 21:53:13 -0800 Subject: [PATCH] [DebugInfo] Delete unused DIVariable::getSource --- llvm/include/llvm/IR/DebugInfoMetadata.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h index 99f2c83..f10183e 100644 --- a/llvm/include/llvm/IR/DebugInfoMetadata.h +++ b/llvm/include/llvm/IR/DebugInfoMetadata.h @@ -3230,12 +3230,6 @@ public: return ""; } - Optional getSource() const { - if (auto *F = getFile()) - return F->getSource(); - return None; - } - MDString *getRawName() const { return getOperandAs(0); } Metadata *getRawFile() const { return getOperand(1); } MDString *getRawGetterName() const { return getOperandAs(2); } -- 2.7.4