aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/dsymbol.h
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/dmd/dsymbol.h
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/dmd/dsymbol.h')
-rw-r--r--gcc/d/dmd/dsymbol.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/gcc/d/dmd/dsymbol.h b/gcc/d/dmd/dsymbol.h
index 8db5cb6..63dbc2c 100644
--- a/gcc/d/dmd/dsymbol.h
+++ b/gcc/d/dmd/dsymbol.h
@@ -83,24 +83,23 @@ struct Ungag
~Ungag() { global.gag = oldgag; }
};
-enum PROTKIND
-{
- PROTundefined,
- PROTnone, // no access
- PROTprivate,
- PROTpackage,
- PROTprotected,
- PROTpublic,
- PROTexport
-};
-
struct Prot
{
- PROTKIND kind;
+ enum Kind
+ {
+ undefined,
+ none, // no access
+ private_,
+ package_,
+ protected_,
+ public_,
+ export_
+ };
+ Kind kind;
Package *pkg;
Prot();
- Prot(PROTKIND kind);
+ Prot(Kind kind);
bool isMoreRestrictiveThan(const Prot other) const;
bool operator==(const Prot& other) const;
@@ -109,7 +108,7 @@ struct Prot
// in hdrgen.c
void protectionToBuffer(OutBuffer *buf, Prot prot);
-const char *protectionToChars(PROTKIND kind);
+const char *protectionToChars(Prot::Kind kind);
/* State of symbol in winding its way through the passes of the compiler
*/
@@ -296,7 +295,7 @@ public:
private:
Dsymbols *importedScopes; // imported Dsymbol's
- PROTKIND *prots; // array of PROTKIND, one for each import
+ Prot::Kind *prots; // array of PROTKIND, one for each import
BitArray accessiblePackages, privateAccessiblePackages;