[llvm] b3ec6a6 - [IR] Drop unnecessary const from return types (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 6 11:17:32 PST 2021
Author: Kazu Hirata
Date: 2021-02-06T11:17:06-08:00
New Revision: b3ec6a602db5349167f8f5486ee115f617f37e50
URL: https://github.com/llvm/llvm-project/commit/b3ec6a602db5349167f8f5486ee115f617f37e50
DIFF: https://github.com/llvm/llvm-project/commit/b3ec6a602db5349167f8f5486ee115f617f37e50.diff
LOG: [IR] Drop unnecessary const from return types (NFC)
Identified with const-return-type.
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 22dd5ee6efac..d93d67ce697f 100644
--- a/llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/llvm/include/llvm/IR/DebugInfoMetadata.h
@@ -3546,10 +3546,10 @@ class DebugVariable {
InlinedAt(InlinedAt) {}
const DILocalVariable *getVariable() const { return Variable; }
- const Optional<FragmentInfo> getFragment() const { return Fragment; }
+ Optional<FragmentInfo> getFragment() const { return Fragment; }
const DILocation *getInlinedAt() const { return InlinedAt; }
- const FragmentInfo getFragmentOrDefault() const {
+ FragmentInfo getFragmentOrDefault() const {
return Fragment.getValueOr(DefaultFragment);
}
More information about the llvm-commits
mailing list