Add some asserts to verify MVT invariant assumptions.
[oota-llvm.git] / lib / VMCore / DebugInfoBuilder.cpp
index c3eba771d039aeed35c3834e909c5fc2a2bfaf0f..82b4b6f9b0af1c97fbe5f4670c57948745d4dc4b 100644 (file)
@@ -20,7 +20,9 @@
 #include <llvm/Support/Dwarf.h>
 #include <llvm/System/Path.h>
 
-namespace llvm {
+using namespace llvm;
+
+namespace {
     
 //===----------------------------------------------------------------------===//
 // Debug version -- copied from MachineModuleInfo (for now), in order to avoid
@@ -44,6 +46,8 @@ const char SUBPROGRAM_NAME[] = "llvm.dbg.subprogram";
 const char BASICTYPE_NAME[] = "llvm.dbg.basictype";
 const char DERIVEDTYPE_NAME[] = "llvm.dbg.derivedtype";
 
+} // end anonymous namespace
+
 DebugInfoBuilder::DebugInfoBuilder() {
     anyPtrType = PointerType::getUnqual(StructType::get(NULL, NULL));
     anchorType = StructType::get(Type::Int32Ty, Type::Int32Ty, NULL);
@@ -268,5 +272,3 @@ GlobalVariable * DebugInfoBuilder::createPointerTypeDescriptor(
     return new GlobalVariable(structVal->getType(), true,
         GlobalValue::InternalLinkage, structVal, DERIVEDTYPE_NAME, module);
 }
-
-}