diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-08-27 21:10:13 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-08-27 21:10:13 +0000 |
commit | d64d956f3da777a0d3ed3ac269bce046ea6ad939 (patch) | |
tree | a8c1a7d8831fb59ebc2171153e09e9c73720fdd3 /lib/VMCore/DebugInfoBuilder.cpp | |
parent | 8763c1c54413c9cd0b56e2860edb5856151a69fc (diff) | |
download | llvm-d64d956f3da777a0d3ed3ac269bce046ea6ad939.tar.gz llvm-d64d956f3da777a0d3ed3ac269bce046ea6ad939.tar.bz2 llvm-d64d956f3da777a0d3ed3ac269bce046ea6ad939.tar.xz |
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
Diffstat (limited to 'lib/VMCore/DebugInfoBuilder.cpp')
-rw-r--r-- | lib/VMCore/DebugInfoBuilder.cpp | 8 |
1 files 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 <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); } - -} |