[llvm-commits] [llvm] r120146 - in /llvm/trunk/lib: CodeGen/RegAllocBasic.cpp Target/PowerPC/InstPrinter/PPCInstPrinter.cpp

Benjamin Kramer benny.kra at googlemail.com
Thu Nov 25 08:42:51 PST 2010


Author: d0k
Date: Thu Nov 25 10:42:51 2010
New Revision: 120146

URL: http://llvm.org/viewvc/llvm-project?rev=120146&view=rev
Log:
Namespacify.

Modified:
    llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
    llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBasic.cpp?rev=120146&r1=120145&r2=120146&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBasic.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBasic.cpp Thu Nov 25 10:42:51 2010
@@ -56,6 +56,8 @@
 VerifyRegAlloc("verify-regalloc",
                cl::desc("Verify live intervals before renaming"));
 
+namespace {
+
 class PhysicalRegisterDescription : public AbstractRegisterDescription {
   const TargetRegisterInfo *tri_;
 public:
@@ -63,8 +65,6 @@
   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

Modified: llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp?rev=120146&r1=120145&r2=120146&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp Thu Nov 25 10:42:51 2010
@@ -222,7 +222,7 @@
 
 /// stripRegisterPrefix - This method strips the character prefix from a
 /// 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]) {
   case 'r':
   case 'f':





More information about the llvm-commits mailing list