From abfafadfc7b1d0996cd483728c1815d844258ca6 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 2 Aug 2010 18:50:06 +0000 Subject: Fix namespace polution. llvm-svn: 110056 --- llvm/lib/Analysis/RegionPrinter.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Analysis/RegionPrinter.cpp') diff --git a/llvm/lib/Analysis/RegionPrinter.cpp b/llvm/lib/Analysis/RegionPrinter.cpp index c657143da7f..67ce05a52f3 100644 --- a/llvm/lib/Analysis/RegionPrinter.cpp +++ b/llvm/lib/Analysis/RegionPrinter.cpp @@ -151,6 +151,8 @@ char RegionPrinter::ID = 0; INITIALIZE_PASS(RegionPrinter, "dot-regions", "Print regions of function to 'dot' file", true, true); +namespace { + struct RegionOnlyPrinter : public DOTGraphTraitsPrinter { static char ID; @@ -158,6 +160,8 @@ struct RegionOnlyPrinter DOTGraphTraitsPrinter("reg", &ID) {} }; +} + char RegionOnlyPrinter::ID = 0; INITIALIZE_PASS(RegionOnlyPrinter, "dot-regions-only", "Print regions of function to 'dot' file " -- cgit v1.2.3