[LLVMdev] setting instruction parents

Patrick Meredith pmeredit at uiuc.edu
Tue May 31 06:42:26 PDT 2005


Currently, my way around this was to go into Instruction.h and make
setParent() public.  I hope there is a better way?

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Patrick Meredith
Sent: Tuesday, May 31, 2005 8:17 AM
To: 'LLVM Developers Mailing List'
Subject: [LLVMdev] setting instruction parents

When one moves an instruction from one BasicBlock to another, the
instruction continues to believe that its parent is the original BasicBlock.
This is very undesirable.  Is there a way to set the parent or a way to move
the instruction such that the parent is updated correctly?



_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev






More information about the llvm-dev mailing list