mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Privatize some variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74315 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41621a2700
commit
52132bf643
@ -100,12 +100,13 @@ namespace {
|
|||||||
std::set<Function*> intrinsicPrototypesAlreadyGenerated;
|
std::set<Function*> intrinsicPrototypesAlreadyGenerated;
|
||||||
std::set<const Argument*> ByValParams;
|
std::set<const Argument*> ByValParams;
|
||||||
unsigned FPCounter;
|
unsigned FPCounter;
|
||||||
|
unsigned OpaqueCounter;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static char ID;
|
static char ID;
|
||||||
explicit CWriter(raw_ostream &o)
|
explicit CWriter(raw_ostream &o)
|
||||||
: FunctionPass(&ID), Out(o), IL(0), Mang(0), LI(0),
|
: FunctionPass(&ID), Out(o), IL(0), Mang(0), LI(0),
|
||||||
TheModule(0), TAsm(0), TD(0) {
|
TheModule(0), TAsm(0), TD(0), OpaqueCounter(0) {
|
||||||
FPCounter = 0;
|
FPCounter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -645,8 +646,7 @@ raw_ostream &CWriter::printType(raw_ostream &Out, const Type *Ty,
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Type::OpaqueTyID: {
|
case Type::OpaqueTyID: {
|
||||||
static int Count = 0;
|
std::string TyName = "struct opaque_" + itostr(OpaqueCounter++);
|
||||||
std::string TyName = "struct opaque_" + itostr(Count++);
|
|
||||||
assert(TypeNames.find(Ty) == TypeNames.end());
|
assert(TypeNames.find(Ty) == TypeNames.end());
|
||||||
TypeNames[Ty] = TyName;
|
TypeNames[Ty] = TyName;
|
||||||
return Out << TyName << ' ' << NameSoFar;
|
return Out << TyName << ' ' << NameSoFar;
|
||||||
@ -750,8 +750,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Type::OpaqueTyID: {
|
case Type::OpaqueTyID: {
|
||||||
static int Count = 0;
|
std::string TyName = "struct opaque_" + itostr(OpaqueCounter++);
|
||||||
std::string TyName = "struct opaque_" + itostr(Count++);
|
|
||||||
assert(TypeNames.find(Ty) == TypeNames.end());
|
assert(TypeNames.find(Ty) == TypeNames.end());
|
||||||
TypeNames[Ty] = TyName;
|
TypeNames[Ty] = TyName;
|
||||||
return Out << TyName << ' ' << NameSoFar;
|
return Out << TyName << ' ' << NameSoFar;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user