Skip to content

Commit

Permalink
merge amd-staging into amd-mainline
Browse files Browse the repository at this point in the history
  Bulk promotion for April 16th, 2022
  for ROCm 5.3
  Merge remote-tracking branch 'gerritgit/promotion/amd-mainline/2022.04.16' into HEAD

Change-Id: Id62ee9332aeb5fb7a7533d7a234c2561e14ec019
  • Loading branch information
David Salinas authored and David Salinas committed Jun 23, 2022
2 parents fccfb50 + 76b9d41 commit 61e348b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/HipifyAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,23 +686,13 @@ class PPCallbackProxy : public clang::PPCallbacks {
// [ToDo] Remove SWDEV_331863 related guards from CMakeLists.txt and HipifyAction.cpp when the blocker SWDEV_331863 is overcome
void InclusionDirective(clang::SourceLocation hash_loc, const clang::Token &include_token,
StringRef file_name, bool is_angled, clang::CharSourceRange filename_range,
#if (LLVM_VERSION_MAJOR < 15) || (LLVM_VERSION_MAJOR == 15 && SWDEV_331863)
const clang::FileEntry *file,
#else
Optional<clang::FileEntryRef> file,
#endif
StringRef search_path, StringRef relative_path,
const clang::FileEntry *file, StringRef search_path, StringRef relative_path,
const clang::Module *imported
#if LLVM_VERSION_MAJOR > 6
, clang::SrcMgr::CharacteristicKind FileType
#endif
) override {
#if (LLVM_VERSION_MAJOR < 15) || (LLVM_VERSION_MAJOR == 15 && SWDEV_331863)
auto f = file;
#else
auto f = &file->getFileEntry();
#endif
hipifyAction.InclusionDirective(hash_loc, include_token, file_name, is_angled, filename_range, f, search_path, relative_path, imported);
hipifyAction.InclusionDirective(hash_loc, include_token, file_name, is_angled, filename_range, file, search_path, relative_path, imported);
}

void PragmaDirective(clang::SourceLocation Loc, clang::PragmaIntroducerKind Introducer) override {
Expand Down

0 comments on commit 61e348b

Please sign in to comment.