diff options
| author | Dan Gohman <gohman@apple.com> | 2010-04-15 04:33:49 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-04-15 04:33:49 +0000 |
| commit | 1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15 (patch) | |
| tree | f2d8e82324f62acca48f90c0535719daafc22c17 /lib/Target/ARM/ARMLoadStoreOptimizer.cpp | |
| parent | a0ed803d12a5a2e1fc25c7da388b1b67072cfa77 (diff) | |
| download | external_llvm-1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15.zip external_llvm-1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15.tar.gz external_llvm-1eb7a9cc529c07b6dba2a2c205ef3a9b055e1b15.tar.bz2 | |
Add more const qualifiers for LLVM IR pointers in CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMLoadStoreOptimizer.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index cb762a4..8585c1e 100644 --- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -1358,7 +1358,7 @@ ARMPreAllocLoadStoreOpt::CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1, return false; unsigned Align = (*Op0->memoperands_begin())->getAlignment(); - Function *Func = MF->getFunction(); + const Function *Func = MF->getFunction(); unsigned ReqAlign = STI->hasV6Ops() ? TD->getPrefTypeAlignment(Type::getInt64Ty(Func->getContext())) : 8; // Pre-v6 need 8-byte align |
