diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-09-10 18:51:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-09-10 18:51:56 +0000 |
commit | de49f360ec4780acb382a3ae923d1716fdb0dc03 (patch) | |
tree | 7a4af7e6a1aa5127e26a225a34806cdd84f7056e /include | |
parent | 979927ab26a1832ee2ecd1edb17d50184756f474 (diff) | |
download | llvm-de49f360ec4780acb382a3ae923d1716fdb0dc03.tar.gz llvm-de49f360ec4780acb382a3ae923d1716fdb0dc03.tar.bz2 llvm-de49f360ec4780acb382a3ae923d1716fdb0dc03.tar.xz |
Auto-upgrade the magic ".llvm.eh.catch.all.value" global to
"llvm.eh.catch.all.value". Only the name needs to be changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/AutoUpgrade.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/AutoUpgrade.h b/include/llvm/AutoUpgrade.h index 0a81c80795..5ce20b69e2 100644 --- a/include/llvm/AutoUpgrade.h +++ b/include/llvm/AutoUpgrade.h @@ -16,6 +16,7 @@ namespace llvm { class Module; + class GlobalVariable; class Function; class CallInst; @@ -35,6 +36,10 @@ namespace llvm { /// so that it can update all calls to the old function. void UpgradeCallsToIntrinsic(Function* F); + /// This checks for global variables which should be upgraded. It returns true + /// if it requires upgrading. + bool UpgradeGlobalVariable(GlobalVariable *GV); + /// This function checks debug info intrinsics. If an intrinsic is invalid /// then this function simply removes the intrinsic. void CheckDebugInfoIntrinsics(Module *M); |