aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFinn Plummer <mail@inbelic.dev>2025-08-06 16:35:16 -0700
committerGitHub <noreply@github.com>2025-08-06 16:35:16 -0700
commitacb5d0c211f72ba370bfeea7e5bf3b108f84895a (patch)
treea00951e52cbe3cf675fa6b7080bd070a0d59b96a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentc4846d29cdefc5fb6858ccf0378a8103b659016b (diff)
downloadllvm-acb5d0c211f72ba370bfeea7e5bf3b108f84895a.zip
llvm-acb5d0c211f72ba370bfeea7e5bf3b108f84895a.tar.gz
llvm-acb5d0c211f72ba370bfeea7e5bf3b108f84895a.tar.bz2
[NFC][HLSL] Replace uses of `getResourceName`/`printEnum` (#152211)
Introduce the `enumToStringRef` enum into `ScopedPrinter.h` that replicates `enumToString` behaviour, expect that instead of returning a hex value string, it just returns an empty string. This allows us to return a StringRef and easily check if an invalid enum was provided based on the StringRef size This then uses `enumToStringRef` to remove the redundant `getResourceName` and `printEnum` functions. Resolves: https://github.com/llvm/llvm-project/issues/151200.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions