Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang] NFC: Remove unused FileEntry::getLastRef() #68156

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

jansvoboda11
Copy link
Contributor

The last usage of the deprecated FileEntry::getLastRef() was removed in #67838, let's remove it entirely.

@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Oct 3, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Oct 3, 2023

@llvm/pr-subscribers-clang

Changes

The last usage of the deprecated FileEntry::getLastRef() was removed in #67838, let's remove it entirely.


Full diff: https://github.com/llvm/llvm-project/pull/68156.diff

1 Files Affected:

  • (modified) clang/include/clang/Basic/FileEntry.h (-1)
diff --git a/clang/include/clang/Basic/FileEntry.h b/clang/include/clang/Basic/FileEntry.h
index c377aba2c1d2ebd..23237a9326f84b6 100644
--- a/clang/include/clang/Basic/FileEntry.h
+++ b/clang/include/clang/Basic/FileEntry.h
@@ -426,7 +426,6 @@ class FileEntry {
 public:
   ~FileEntry();
   StringRef getName() const { return LastRef->getName(); }
-  FileEntryRef getLastRef() const { return *LastRef; }
 
   StringRef tryGetRealPathName() const { return RealPathName; }
   off_t getSize() const { return Size; }

@jansvoboda11 jansvoboda11 merged commit 25a6b89 into llvm:main Oct 3, 2023
4 of 5 checks passed
@jansvoboda11 jansvoboda11 deleted the remove-last-ref branch October 3, 2023 20:37
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Oct 4, 2023
Revert: breaks hipify
  25a6b89: [clang] NFC: Remove unused `FileEntry::getLastRef()` (llvm#68156)

Change-Id: I8ba7c4c9eb08b63a479c2c393ace3195c2f5b5b0
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Oct 6, 2023
The last usage of the deprecated `FileEntry::getLastRef()` was removed
in llvm#67838, let's remove it entirely.

Change-Id: I690b9a38b8d9e7b4c1414d008873f3f819a27a26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants