[llvm-commits] [llvm] r55435 - /llvm/trunk/lib/VMCore/DebugInfoBuilder.cpp

Bill Wendling isanbard at gmail.com
Wed Aug 27 14:10:14 PDT 2008


Author: void
Date: Wed Aug 27 16:10:13 2008
New Revision: 55435

URL: http://llvm.org/viewvc/llvm-project?rev=55435&view=rev
Log:
Put file scoped constants in an anonymous namespace. Use the "using namespace
llvm" for consistency.

Modified:
    llvm/trunk/lib/VMCore/DebugInfoBuilder.cpp

Modified: llvm/trunk/lib/VMCore/DebugInfoBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/DebugInfoBuilder.cpp?rev=55435&r1=55434&r2=55435&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/DebugInfoBuilder.cpp (original)
+++ llvm/trunk/lib/VMCore/DebugInfoBuilder.cpp Wed Aug 27 16:10:13 2008
@@ -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 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 @@
     return new GlobalVariable(structVal->getType(), true,
         GlobalValue::InternalLinkage, structVal, DERIVEDTYPE_NAME, module);
 }
-
-}





More information about the llvm-commits mailing list