[llvm] [Offload] Use llvm::Error throughout liboffload internals (PR #140879)

Ross Brunton via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 06:14:52 PDT 2025


================
@@ -184,6 +184,13 @@ class ReturnRec {
 public:
   ReturnRec(const Record *rec) : rec(rec) {}
   StringRef getValue() const { return rec->getValueAsString("value"); }
+  // Strip the "OL_ERRC_" from the value, resulting in just "FOO" from
+  // "OL_ERRC_FOO"
+  StringRef getEtorValue() const {
----------------
RossBrunton wrote:

"enumerator", but apparently that usage doesn't seem commonplace so I've just renamed it.

https://github.com/llvm/llvm-project/pull/140879


More information about the llvm-commits mailing list