diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-04-14 17:34:20 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-04-14 17:34:20 +0000 |
commit | 1e0d9bda6214e8aaf3d6edd301255f5552242f12 (patch) | |
tree | e60bfe37fcb3332c43ea4a7dc10325de4a03fade /lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | 3ae1829fe5fa2523437e7f37f085010af37c475e (diff) |
fix calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelPattern.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 18cc35a356..d8459815fd 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -1418,6 +1418,7 @@ unsigned ISel::SelectExpr(SDOperand N) { BuildMI(BB, Alpha::CALL, 1).addGlobalAddress(GASD->getGlobal()); } else { //use PC relative branch call + AlphaLowering.restoreGP(BB); BuildMI(BB, Alpha::BSR, 1, Alpha::R26).addGlobalAddress(GASD->getGlobal(),true); } } |