summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-24 11:31:42 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-24 11:31:42 +0100
commit31f77cd07037933db8f547dff18d03af84be8fe5 (patch)
tree5cd0ffa57eca05e1392f24d3eafe637cd03a8d6a
parentf37bcbba7bbed10763f84f59a3b4e55bbd30c5b8 (diff)
Simplify switch to if.
-rw-r--r--src/firm/mangle.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/firm/mangle.c b/src/firm/mangle.c
index b5805ed..c950916 100644
--- a/src/firm/mangle.c
+++ b/src/firm/mangle.c
@@ -280,13 +280,7 @@ ident *create_ld_ident(entity_t const *const entity)
if (cc_prefix != 0)
obstack_1grow(&obst, cc_prefix);
- switch (type->function.linkage) {
- case LINKAGE_CXX:
- mangle_cxx = true;
- break;
- default:
- mangle_cxx = false;
- }
+ mangle_cxx = type->function.linkage == LINKAGE_CXX;
if (cc == CC_STDCALL || cc == CC_FASTCALL) {
size_suffix = 0;