summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/DebugInfoBuilder.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-08-27 21:10:13 +0000
committerBill Wendling <isanbard@gmail.com>2008-08-27 21:10:13 +0000
commit25b4cad510a571fef999598a9506eb00f0b0a8c4 (patch)
tree6f54f8f422f405db31cd58e7248cddd6fdb15876 /llvm/lib/VMCore/DebugInfoBuilder.cpp
parentf016b263e24596306932e8a5b1ede4d486595c1a (diff)
downloadbcm5719-llvm-25b4cad510a571fef999598a9506eb00f0b0a8c4.tar.gz
bcm5719-llvm-25b4cad510a571fef999598a9506eb00f0b0a8c4.zip
Put file scoped constants in an anonymous namespace. Use the "using namespace
llvm" for consistency. llvm-svn: 55435
Diffstat (limited to 'llvm/lib/VMCore/DebugInfoBuilder.cpp')
-rw-r--r--llvm/lib/VMCore/DebugInfoBuilder.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/DebugInfoBuilder.cpp b/llvm/lib/VMCore/DebugInfoBuilder.cpp
index c3eba771d03..82b4b6f9b0a 100644
--- a/llvm/lib/VMCore/DebugInfoBuilder.cpp
+++ b/llvm/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);
}
-
-}
OpenPOWER on IntegriCloud