diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-26 23:44:11 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-26 23:44:11 +0000 |
commit | f0179004e94259a8adab6c48f295ea9ab18af4c3 (patch) | |
tree | 4d5739157847b5066207e94bbd723fbcc3c3c857 /lib/CodeGen/VirtRegMap.h | |
parent | 3eca15bdb5823d0f9ff5059a179a1759fee1a185 (diff) |
Add SplitEditor to SplitKit. This class will be used to edit live intervals and
rewrite instructions for live range splitting.
Still work in progress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.h')
-rw-r--r-- | lib/CodeGen/VirtRegMap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/VirtRegMap.h b/lib/CodeGen/VirtRegMap.h index a5599f68b6..87a9b2a7c4 100644 --- a/lib/CodeGen/VirtRegMap.h +++ b/lib/CodeGen/VirtRegMap.h @@ -152,6 +152,11 @@ namespace llvm { MachineFunctionPass::getAnalysisUsage(AU); } + MachineFunction &getMachineFunction() const { + assert(MF && "getMachineFunction called before runOnMAchineFunction"); + return *MF; + } + void grow(); /// @brief returns true if the specified virtual register is |