diff options
| author | Juan Manuel Martinez CaamaƱo <jmartinezcaamao@gmail.com> | 2025-10-20 18:30:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-20 16:30:00 +0000 |
| commit | a5bab28de7b44df77fe45709f89a96a2b68dd0a8 (patch) | |
| tree | 61a5105a0622b9a6e8db6d448973ca30f9c435a0 /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | e25e43a9d9cffb36986dd5cfa0cf9b22638963d9 (diff) | |
| download | llvm-a5bab28de7b44df77fe45709f89a96a2b68dd0a8.zip llvm-a5bab28de7b44df77fe45709f89a96a2b68dd0a8.tar.gz llvm-a5bab28de7b44df77fe45709f89a96a2b68dd0a8.tar.bz2 | |
[NFC][SPIRV] Move common SPIRV::LinkageType deduction code to a helper in SPIRVUtils (#164248)
There was some repeated code that was used to deduce the
SPIRV::LinkageType from a GlobalVariable/Function.
At several related parts of the code we also had functions taking 2
parameters:
a 'hasLinkage' bool, and a 'LinkageType'. This is error-prone since the
later parameter's meaning depends on the first. This patch also merges
these
two options into a single `std::optional<SPIRV::LinkageType>`.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
