summaryrefslogtreecommitdiff
path: root/gcc/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r--gcc/bitmap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index 9d8ebc74558..dfebc11adca 100644
--- a/gcc/bitmap.c
+++ b/gcc/bitmap.c
@@ -20,6 +20,7 @@ along with GCC; see the file COPYING3. If not see
#include "config.h"
#include "system.h"
#include "coretypes.h"
+#include <utility>
#include "obstack.h"
#include "ggc.h"
#include "bitmap.h"
@@ -2223,5 +2224,14 @@ debug (const bitmap_head *ptr)
fprintf (stderr, "<nil>\n");
}
+void
+bitmap_head::swap (bitmap_head *other)
+{
+ other->indx = indx = 0;
+ other->current = current = NULL;
+ std::swap (other->descriptor_id, descriptor_id);
+ std::swap (other->first, first);
+ std::swap (other->obstack, obstack);
+}
#include "gt-bitmap.h"