diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-25 16:42:51 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-25 16:42:51 +0000 |
commit | aef5bd049f45ddd3d0ddcca23608c78a8443457a (patch) | |
tree | 6268eaffffe173a6f181530efa42af695edc6b25 /llvm/lib/CodeGen/RegAllocBasic.cpp | |
parent | f8e127eaf61ba9301d0a8fbc39de16d3a1c34248 (diff) | |
download | bcm5719-llvm-aef5bd049f45ddd3d0ddcca23608c78a8443457a.tar.gz bcm5719-llvm-aef5bd049f45ddd3d0ddcca23608c78a8443457a.zip |
Namespacify.
llvm-svn: 120146
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocBasic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp index 76c243c743f..6af5e6c8896 100644 --- a/llvm/lib/CodeGen/RegAllocBasic.cpp +++ b/llvm/lib/CodeGen/RegAllocBasic.cpp @@ -56,6 +56,8 @@ static cl::opt<bool> VerifyRegAlloc("verify-regalloc", cl::desc("Verify live intervals before renaming")); +namespace { + class PhysicalRegisterDescription : public AbstractRegisterDescription { const TargetRegisterInfo *tri_; public: @@ -63,8 +65,6 @@ public: virtual const char *getName(unsigned reg) const { return tri_->getName(reg); } }; -namespace { - /// RABasic provides a minimal implementation of the basic register allocation /// algorithm. It prioritizes live virtual registers by spill weight and spills /// whenever a register is unavailable. This is not practical in production but |