Make constant arrays that are passed to functions as const.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Mar 2015 17:41:00 +0000 (17:41 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Mar 2015 17:41:00 +0000 (17:41 +0000)
commited0266d8ee16537e7cec9d9409ddf07a8e3efbc5
treefe747a6b3535bb74e5528fa2a8cfff34be6062f9
parent62ffaaac7c03a1b50b98d93263a02514e39c634f
Make constant arrays that are passed to functions as const.

In theory this allows the compiler to skip materializing the array on
the stack. In practice clang often fails to do that, but that's a
different story. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231571 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/MC/MCELFStreamer.cpp
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/R600/SIISelLowering.cpp
lib/Target/X86/X86SelectionDAGInfo.cpp