Don't cast away constness.

llvm-svn: 182086
This commit is contained in:
Benjamin Kramer 2013-05-17 11:39:41 +00:00
parent ccbb603f31
commit 5781bb221a

View File

@ -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)