llvm-objdump: Ignore unreachable blocks when printing the CFG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2011-07-25 23:04:36 +00:00
parent f0080016c6
commit 853b0fd623
2 changed files with 21 additions and 2 deletions

View File

@ -54,6 +54,8 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
}
}
Splits.insert(Index+Size);
} else if (Desc.isReturn()) {
Splits.insert(Index+Size);
}
Instructions.push_back(MCDecodedInst(Index, Size, Inst));