mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-03 09:28:58 +00:00
Don't cast away constness.
llvm-svn: 182086
This commit is contained in:
parent
ccbb603f31
commit
5781bb221a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user