diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-31 18:16:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-31 18:16:33 +0000 |
commit | ad2afc2a421a0e41603d5eee412d4d8c77e9bc1c (patch) | |
tree | f06c032e6c95e27a621685fb4a2a2f07469ca076 /include/llvm/Function.h | |
parent | 56594f98848ac6d1885662644b5652c04c0d0831 (diff) |
Reapply r77654 with a fix: MachineFunctionPass's getAnalysisUsage
shouldn't do AU.setPreservesCFG(), because even though CodeGen passes
don't modify the LLVM IR CFG, they may modify the MachineFunction CFG,
and passes like MachineLoop are registered with isCFGOnly set to true.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 57ebfb10a5..90d9b0ee46 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -21,7 +21,6 @@ #include "llvm/GlobalValue.h" #include "llvm/BasicBlock.h" #include "llvm/Argument.h" -#include "llvm/Support/Annotation.h" #include "llvm/Attributes.h" namespace llvm { @@ -66,7 +65,7 @@ private: mutable ilist_node<Argument> Sentinel; }; -class Function : public GlobalValue, public Annotable, +class Function : public GlobalValue, public ilist_node<Function> { public: typedef iplist<Argument> ArgumentListType; |