From d64d956f3da777a0d3ed3ac269bce046ea6ad939 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 27 Aug 2008 21:10:13 +0000 Subject: Put file scoped constants in an anonymous namespace. Use the "using namespace llvm" for consistency. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55435 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/DebugInfoBuilder.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/VMCore/DebugInfoBuilder.cpp b/lib/VMCore/DebugInfoBuilder.cpp index c3eba771d0..82b4b6f9b0 100644 --- a/lib/VMCore/DebugInfoBuilder.cpp +++ b/lib/VMCore/DebugInfoBuilder.cpp @@ -20,7 +20,9 @@ #include #include -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); } - -} -- cgit v1.2.3