OSDN Git Service

Put file scoped constants in an anonymous namespace. Use the "using namespace
authorBill Wendling <isanbard@gmail.com>
Wed, 27 Aug 2008 21:10:13 +0000 (21:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 27 Aug 2008 21:10:13 +0000 (21:10 +0000)
llvm" for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55435 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/DebugInfoBuilder.cpp

index c3eba77..82b4b6f 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);
 }
-
-}