[llvm] r182086 - Don't cast away constness.
Benjamin Kramer
benny.kra at googlemail.com
Fri May 17 04:39:42 PDT 2013
Author: d0k
Date: Fri May 17 06:39:41 2013
New Revision: 182086
URL: http://llvm.org/viewvc/llvm-project?rev=182086&view=rev
Log:
Don't cast away constness.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonTargetMachine.cpp?rev=182086&r1=182085&r2=182086&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonTargetMachine.cpp Fri May 17 06:39:41 2013
@@ -159,8 +159,8 @@ bool HexagonPassConfig::addPostRegAlloc(
bool HexagonPassConfig::addPreSched2() {
const HexagonTargetMachine &TM = getHexagonTargetMachine();
- HexagonTargetObjectFile &TLOF =
- (HexagonTargetObjectFile&)(getTargetLowering()->getObjFileLowering());
+ const HexagonTargetObjectFile &TLOF =
+ (const HexagonTargetObjectFile &)getTargetLowering()->getObjFileLowering();
addPass(createHexagonCopyToCombine());
if (getOptLevel() != CodeGenOpt::None)
More information about the llvm-commits
mailing list