mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Broad superficial changes:
* Renamed getOpcode to getOpcodeName * Changed getOpcodeName to return a const char * instead of string * Added a getOpcode method to replace getInstType * Changed code to use getOpcode instead of getInstType git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,7 +25,7 @@ BasicBlock *cfg::UnifyAllExitNodes(Method *M) {
|
||||
// return.
|
||||
//
|
||||
for(Method::iterator I = M->begin(), E = M->end(); I != E; ++I)
|
||||
if ((*I)->getTerminator()->getInstType() == Instruction::Ret)
|
||||
if ((*I)->getTerminator()->getOpcode() == Instruction::Ret)
|
||||
ReturningBlocks.push_back(*I);
|
||||
|
||||
if (ReturningBlocks.size() == 0)
|
||||
|
Reference in New Issue
Block a user