summaryrefslogtreecommitdiff
path: root/gcc/d/intrinsics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/intrinsics.cc')
-rw-r--r--gcc/d/intrinsics.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/d/intrinsics.cc b/gcc/d/intrinsics.cc
index 539dc0c1f37..b14b0ca5111 100644
--- a/gcc/d/intrinsics.cc
+++ b/gcc/d/intrinsics.cc
@@ -20,9 +20,9 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "dmd/declaration.h"
+#include "dmd/expression.h"
#include "dmd/identifier.h"
#include "dmd/mangle.h"
-#include "dmd/mangle.h"
#include "dmd/module.h"
#include "dmd/template.h"
@@ -76,12 +76,12 @@ static const intrinsic_decl intrinsic_decls[] =
void
maybe_set_intrinsic (FuncDeclaration *decl)
{
- if (!decl->ident || decl->builtin != BUILTINunknown)
+ if (!decl->ident || decl->builtin != BUILTIN::unknown)
return;
/* The builtin flag is updated only if we can evaluate the intrinsic
at compile-time. Such as the math or bitop intrinsics. */
- decl->builtin = BUILTINunimp;
+ decl->builtin = BUILTIN::unimp;
/* Check if it's a compiler intrinsic. We only require that any
internally recognised intrinsics are declared in a module with
@@ -177,12 +177,12 @@ maybe_set_intrinsic (FuncDeclaration *decl)
built-in function. It could be `int pow(int, int)'. */
tree rettype = TREE_TYPE (TREE_TYPE (decl->csym));
if (mathfn_built_in (rettype, BUILT_IN_POW) != NULL_TREE)
- decl->builtin = BUILTINgcc;
+ decl->builtin = BUILTIN::gcc;
break;
}
default:
- decl->builtin = BUILTINgcc;
+ decl->builtin = BUILTIN::gcc;
break;
}