LowerBitSets: Move declarations to separate namespace.

Should fix modules build.

llvm-svn: 265176
This commit is contained in:
Peter Collingbourne 2016-04-01 18:46:50 +00:00
parent 347b1d5964
commit 5990eb01ac
3 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,8 @@ class GlobalObject;
class Value;
class raw_ostream;
namespace lowerbitsets {
struct BitSetInfo {
// The indices of the set bits in the bitset.
std::set<uint64_t> Bits;
@ -197,6 +199,7 @@ struct ByteArrayBuilder {
uint64_t &AllocByteOffset, uint8_t &AllocMask);
};
} // end namespace lowerbitsets
} // end namespace llvm
#endif // LLVM_TRANSFORMS_IPO_LOWERBITSETS_H

View File

@ -33,6 +33,7 @@
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
using namespace llvm;
using namespace lowerbitsets;
#define DEBUG_TYPE "lowerbitsets"

View File

@ -11,6 +11,7 @@
#include "gtest/gtest.h"
using namespace llvm;
using namespace lowerbitsets;
TEST(LowerBitSets, BitSetBuilder) {
struct {