aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/decl.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-07 21:58:49 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-06-08 00:10:11 +0200
commit0a2ee4099d9c964dadd097f829a9624164d98743 (patch)
tree49bd230244e89f9922e67fdfaf1a26bb401405d3 /gcc/d/decl.cc
parentf08995eefbf579acfe40f0204727d5ce388e3d0a (diff)
downloadgcc-0a2ee4099d9c964dadd097f829a9624164d98743.zip
gcc-0a2ee4099d9c964dadd097f829a9624164d98743.tar.gz
gcc-0a2ee4099d9c964dadd097f829a9624164d98743.tar.bz2
d: Merge upstream dmd 73d8e2fec.
Renames the enum PROTKIND to Prot::Kind, updates all uses of the original enum accordingly. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 73d8e2fec. * decl.cc (get_symbol_decl): Use new Prot::Kind enum. * modules.cc (get_internal_fn): Likewise.
Diffstat (limited to 'gcc/d/decl.cc')
-rw-r--r--gcc/d/decl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc
index a2a2142..bcee0b2 100644
--- a/gcc/d/decl.cc
+++ b/gcc/d/decl.cc
@@ -1325,9 +1325,9 @@ get_symbol_decl (Declaration *decl)
TREE_THIS_VOLATILE (decl->csym) = 1;
/* Protection attributes are used by the debugger. */
- if (decl->protection.kind == PROTprivate)
+ if (decl->protection.kind == Prot::private_)
TREE_PRIVATE (decl->csym) = 1;
- else if (decl->protection.kind == PROTprotected)
+ else if (decl->protection.kind == Prot::protected_)
TREE_PROTECTED (decl->csym) = 1;
/* Likewise, so could the deprecated attribute. */