[llvm] 063b19d - [DebugInfo] Delete unused DIVariable::getSource
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 4 21:53:18 PST 2021
Author: Fangrui Song
Date: 2021-03-04T21:53:13-08:00
New Revision: 063b19dea6991c2bc40bd93f262e20401792822d
URL: https://github.com/llvm/llvm-project/commit/063b19dea6991c2bc40bd93f262e20401792822d
DIFF: https://github.com/llvm/llvm-project/commit/063b19dea6991c2bc40bd93f262e20401792822d.diff
LOG: [DebugInfo] Delete unused DIVariable::getSource
Added:
Modified:
llvm/include/llvm/IR/DebugInfoMetadata.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h
index 99f2c836045f..f10183ed3ecd 100644
--- a/llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/llvm/include/llvm/IR/DebugInfoMetadata.h
@@ -3230,12 +3230,6 @@ class DIObjCProperty : public DINode {
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); }
More information about the llvm-commits
mailing list