const'ify jump table stuff

llvm-svn: 31269
This commit is contained in:
Chris Lattner
2006-10-28 18:17:09 +00:00
parent 853b19a679
commit cde339cf1e
2 changed files with 3 additions and 3 deletions

View File

@@ -362,7 +362,7 @@ void MachineFrameInfo::dump(const MachineFunction &MF) const {
/// or return an existing one.
///
unsigned MachineJumpTableInfo::getJumpTableIndex(
std::vector<MachineBasicBlock*> &DestBBs) {
const std::vector<MachineBasicBlock*> &DestBBs) {
assert(!DestBBs.empty() && "Cannot create an empty jump table!");
for (unsigned i = 0, e = JumpTables.size(); i != e; ++i)
if (JumpTables[i].MBBs == DestBBs)