aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-31 01:59:11 +0000
committerChris Lattner <sabre@nondot.org>2004-07-31 01:59:11 +0000
commitdc4a4922d32b470acd68498d41e3b8130cf1e74e (patch)
tree3338d9db10e2b96b59e011a834f3d715e61f7003 /include/llvm/CodeGen/MachineInstr.h
parent0a88d2d8b96aa02449afb94761d67c3b59aade5c (diff)
Add some machine CFG related stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index eac9d8a37e..3a01ab0fbf 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -255,6 +255,10 @@ public:
assert(isMachineBasicBlock() && "Wrong MachineOperand accessor");
return contents.MBB;
}
+ void setMachineBasicBlock(MachineBasicBlock *MBB) {
+ assert(isMachineBasicBlock() && "Wrong MachineOperand accessor");
+ contents.MBB = MBB;
+ }
int getFrameIndex() const {
assert(isFrameIndex() && "Wrong MachineOperand accessor");
return contents.immedVal;