diff options
| author | Callum Fare <callum@codeplay.com> | 2025-06-03 16:39:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-03 10:39:04 -0500 |
| commit | b78bc35d1629e9a07e0c6c677c5a1f477934b659 (patch) | |
| tree | e6b07535f5a25cee226b1595d35c95ecfdf70dd8 /offload/plugins-nextgen/common/src/OffloadError.cpp | |
| parent | e6529dcedb3955706a8af5710591f1ac1bac26a3 (diff) | |
[Offload] Don't check in generated files (#141982)
Previously we decided to check in files that we generate with tablegen.
The justification at the time was that it helped reviewers unfamiliar
with `offload-tblgen` see the actual changes to the headers in PRs.
After trying it for a while, it's ended up causing some headaches and is
also not how tablegen is used elsewhere in LLVM.
This changes our use of tablegen to be more conventional. Where
possible, files are still clang-formatted, but this is no longer a hard
requirement. Because `OffloadErrcodes.inc` is shared with libomptarget
it now gets generated in a more appropriate place.
Diffstat (limited to 'offload/plugins-nextgen/common/src/OffloadError.cpp')
| -rw-r--r-- | offload/plugins-nextgen/common/src/OffloadError.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/offload/plugins-nextgen/common/src/OffloadError.cpp b/offload/plugins-nextgen/common/src/OffloadError.cpp index ad151cf26d04..78d49047d729 100644 --- a/offload/plugins-nextgen/common/src/OffloadError.cpp +++ b/offload/plugins-nextgen/common/src/OffloadError.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "Shared/OffloadError.h" +#include "OffloadError.h" #include "llvm/Support/ErrorHandling.h" using namespace llvm; @@ -24,7 +24,7 @@ public: #define OFFLOAD_ERRC(Name, Desc, Value) \ case ErrorCode::Name: \ return #Desc; -#include "Shared/OffloadErrcodes.inc" +#include "OffloadErrcodes.inc" #undef OFFLOAD_ERRC } llvm_unreachable("Unrecognized offload ErrorCode"); |
