mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 15:39:28 +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:
parent
8763c1c544
commit
d64d956f3d
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user