From 8b81df49c593d2c8dd1f9a72a63d0a4182149359 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Wed, 20 Sep 2006 14:54:38 +0000 Subject: [PATCH] added macro to retirve register class name --- ir/be/bearch.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ir/be/bearch.h b/ir/be/bearch.h index a9c13db11..2743f63b9 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -81,6 +81,9 @@ struct _arch_register_class_t { /** return the largest mode of this register class */ #define arch_register_class_mode(cls) ((cls)->mode) +/** return the name of this register class */ +#define arch_register_class_name(cls) ((cls)->name) + /** * Put all registers in a class into a bitset. * @param cls The class. -- 2.20.1