mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
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
This commit is contained in:
@@ -20,7 +20,9 @@
|
|||||||
#include <llvm/Support/Dwarf.h>
|
#include <llvm/Support/Dwarf.h>
|
||||||
#include <llvm/System/Path.h>
|
#include <llvm/System/Path.h>
|
||||||
|
|
||||||
namespace llvm {
|
using namespace llvm;
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Debug version -- copied from MachineModuleInfo (for now), in order to avoid
|
// 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 BASICTYPE_NAME[] = "llvm.dbg.basictype";
|
||||||
const char DERIVEDTYPE_NAME[] = "llvm.dbg.derivedtype";
|
const char DERIVEDTYPE_NAME[] = "llvm.dbg.derivedtype";
|
||||||
|
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
DebugInfoBuilder::DebugInfoBuilder() {
|
DebugInfoBuilder::DebugInfoBuilder() {
|
||||||
anyPtrType = PointerType::getUnqual(StructType::get(NULL, NULL));
|
anyPtrType = PointerType::getUnqual(StructType::get(NULL, NULL));
|
||||||
anchorType = StructType::get(Type::Int32Ty, Type::Int32Ty, NULL);
|
anchorType = StructType::get(Type::Int32Ty, Type::Int32Ty, NULL);
|
||||||
@@ -268,5 +272,3 @@ GlobalVariable * DebugInfoBuilder::createPointerTypeDescriptor(
|
|||||||
return new GlobalVariable(structVal->getType(), true,
|
return new GlobalVariable(structVal->getType(), true,
|
||||||
GlobalValue::InternalLinkage, structVal, DERIVEDTYPE_NAME, module);
|
GlobalValue::InternalLinkage, structVal, DERIVEDTYPE_NAME, module);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user