diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-07-10 16:16:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-10 16:16:37 -0700 |
commit | b415db02e7c2b5ae86fdae25f84e646917617818 (patch) | |
tree | 18b05c1880cdafa724346ee090536f283e2937b6 /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | 78e0c767897ebb5bd8ccc87ab55a5ebd1397d77b (diff) | |
download | llvm-b415db02e7c2b5ae86fdae25f84e646917617818.zip llvm-b415db02e7c2b5ae86fdae25f84e646917617818.tar.gz llvm-b415db02e7c2b5ae86fdae25f84e646917617818.tar.bz2 |
[CIR] Add handlers for 'using enum' and namespace alias (#148011)
These decl types don't require any code generation, though when debug
info is implemented, we will need to add handling for that. Until then,
we just need to have a handler so they don't generate an NYI error.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index c1434ee..8b2883b 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -1258,6 +1258,8 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) { case Decl::Enum: case Decl::Using: // using X; [C++] case Decl::UsingDirective: // using namespace X; [C++] + case Decl::UsingEnum: // using enum X; [C++] + case Decl::NamespaceAlias: case Decl::Typedef: case Decl::TypeAlias: // using foo = bar; [C++11] case Decl::Record: |