mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Namespacify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -56,6 +56,8 @@ static cl::opt<bool>
|
|||||||
VerifyRegAlloc("verify-regalloc",
|
VerifyRegAlloc("verify-regalloc",
|
||||||
cl::desc("Verify live intervals before renaming"));
|
cl::desc("Verify live intervals before renaming"));
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
class PhysicalRegisterDescription : public AbstractRegisterDescription {
|
class PhysicalRegisterDescription : public AbstractRegisterDescription {
|
||||||
const TargetRegisterInfo *tri_;
|
const TargetRegisterInfo *tri_;
|
||||||
public:
|
public:
|
||||||
@ -63,8 +65,6 @@ public:
|
|||||||
virtual const char *getName(unsigned reg) const { return tri_->getName(reg); }
|
virtual const char *getName(unsigned reg) const { return tri_->getName(reg); }
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
/// RABasic provides a minimal implementation of the basic register allocation
|
/// RABasic provides a minimal implementation of the basic register allocation
|
||||||
/// algorithm. It prioritizes live virtual registers by spill weight and spills
|
/// algorithm. It prioritizes live virtual registers by spill weight and spills
|
||||||
/// whenever a register is unavailable. This is not practical in production but
|
/// whenever a register is unavailable. This is not practical in production but
|
||||||
|
@ -222,7 +222,7 @@ void PPCInstPrinter::printMemRegReg(const MCInst *MI, unsigned OpNo,
|
|||||||
|
|
||||||
/// stripRegisterPrefix - This method strips the character prefix from a
|
/// stripRegisterPrefix - This method strips the character prefix from a
|
||||||
/// register name so that only the number is left. Used by for linux asm.
|
/// register name so that only the number is left. Used by for linux asm.
|
||||||
const char *stripRegisterPrefix(const char *RegName) {
|
static const char *stripRegisterPrefix(const char *RegName) {
|
||||||
switch (RegName[0]) {
|
switch (RegName[0]) {
|
||||||
case 'r':
|
case 'r':
|
||||||
case 'f':
|
case 'f':
|
||||||
|
Reference in New Issue
Block a user