[llvm-commits] [llvm] r146575 - /llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Dec 14 10:49:14 PST 2011


Author: stoklund
Date: Wed Dec 14 12:49:13 2011
New Revision: 146575

URL: http://llvm.org/viewvc/llvm-project?rev=146575&view=rev
Log:
Fix speling and 80-col.

Modified:
    llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp?rev=146575&r1=146574&r2=146575&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMConstantIslandPass.cpp Wed Dec 14 12:49:13 2011
@@ -53,7 +53,7 @@
           cl::desc("Adjust basic block layout to better use TB[BH]"));
 
 static cl::opt<bool>
-AlignConstantIslands("arm-align-constant-island", cl::Hidden,
+AlignConstantIslands("arm-align-constant-islands", cl::Hidden,
           cl::desc("Align constant islands in code"));
 
 /// UnknownPadding - Return the worst case padding that could result from
@@ -496,7 +496,7 @@
   MF->push_back(BB);
 
   // MachineConstantPool measures alignment in bytes. We measure in log2(bytes).
-  unsigned MaxAlign = Log2_32(MF->getConstantPool()->getConstantPoolAlignment());
+  unsigned MaxAlign = Log2_32(MCP->getConstantPoolAlignment());
 
   // Mark the basic block as required by the const-pool.
   // If AlignConstantIslands isn't set, use 4-byte alignment for everything.
@@ -514,8 +514,7 @@
 
   // Add all of the constants from the constant pool to the end block, use an
   // identity mapping of CPI's to CPE's.
-  const std::vector<MachineConstantPoolEntry> &CPs =
-    MF->getConstantPool()->getConstants();
+  const std::vector<MachineConstantPoolEntry> &CPs = MCP->getConstants();
 
   const TargetData &TD = *MF->getTarget().getTargetData();
   for (unsigned i = 0, e = CPs.size(); i != e; ++i) {





More information about the llvm-commits mailing list