Skip to content

Commit fd80304

Browse files
committed
[clang][NFC] Annotate CGCUDARuntime.h with preferred_type
This helps debuggers to display values in bit-fields in a more helpful way.
1 parent ba0d351 commit fd80304

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/CodeGen/CGCUDARuntime.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,15 @@ class CGCUDARuntime {
5454
};
5555

5656
private:
57+
LLVM_PREFERRED_TYPE(DeviceVarKind)
5758
unsigned Kind : 2;
59+
LLVM_PREFERRED_TYPE(bool)
5860
unsigned Extern : 1;
61+
LLVM_PREFERRED_TYPE(bool)
5962
unsigned Constant : 1; // Constant variable.
63+
LLVM_PREFERRED_TYPE(bool)
6064
unsigned Managed : 1; // Managed variable.
65+
LLVM_PREFERRED_TYPE(bool)
6166
unsigned Normalized : 1; // Normalized texture.
6267
int SurfTexType; // Type of surface/texutre.
6368

0 commit comments

Comments
 (0)