diff options
author | Fangrui Song <i@maskray.me> | 2021-03-04 21:53:13 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-03-04 21:53:13 -0800 |
commit | 063b19dea6991c2bc40bd93f262e20401792822d (patch) | |
tree | 018627a5353036fea138f3b9c03df5f9f5aceed7 | |
parent | 9e28b89827a3be4ab602b40c263839665af06b4a (diff) | |
download | llvm-063b19dea6991c2bc40bd93f262e20401792822d.zip llvm-063b19dea6991c2bc40bd93f262e20401792822d.tar.gz llvm-063b19dea6991c2bc40bd93f262e20401792822d.tar.bz2 |
[DebugInfo] Delete unused DIVariable::getSource
-rw-r--r-- | llvm/include/llvm/IR/DebugInfoMetadata.h | 6 |
1 files changed, 0 insertions, 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<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); } |