about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-15 19:12:14 +0200
committerRalf Jung <post@ralfj.de>2020-06-15 19:12:14 +0200
commit10c8d2afb8b90e03e2d1563df021146150338c45 (patch)
tree7f1dcae2cbf3bb9c4293d56589df2c97c7be2142
parent7a6d03c2699787644b44f7bc3e8252d1508880b8 (diff)
downloadrust-10c8d2afb8b90e03e2d1563df021146150338c45.tar.gz
rust-10c8d2afb8b90e03e2d1563df021146150338c45.zip
add FIXME to EnumTagInfo
-rw-r--r--src/librustc_codegen_llvm/debuginfo/metadata.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs
index 01f630a31a1..b7e7489cba0 100644
--- a/src/librustc_codegen_llvm/debuginfo/metadata.rs
+++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs
@@ -1637,6 +1637,9 @@ impl VariantMemberDescriptionFactory<'ll, 'tcx> {
     }
 }
 
+// FIXME: terminology here should be aligned with `abi::TagEncoding`.
+// `OptimizedTag` is `TagEncoding::Niche`, `RegularTag` is `TagEncoding::Direct`.
+// `NoTag` should be removed; users should use `Option<EnumTagInfo>` instead.
 #[derive(Copy, Clone)]
 enum EnumTagInfo<'ll> {
     RegularTag { tag_field: Field, tag_type_metadata: &'ll DIType },