1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Put file scoped constants in an anonymous namespace. Use the "using namespace

llvm" for consistency.

llvm-svn: 55435
This commit is contained in:
Bill Wendling 2008-08-27 21:10:13 +00:00
parent cf2cb4da82
commit 84547c2a09

View 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);
}
}