diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-04-13 17:17:28 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-04-13 17:17:28 +0000 |
commit | c24b537399e872378ce117080928bd6c890c85f7 (patch) | |
tree | d1139bbbb394c417d9a182354b00621d19459ccf /lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | 556c44e116b2f068913a78c8cbe80c5b4e9abbec (diff) |
WOW, function calls still seem to work after this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelPattern.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 8f3752f964..e594c8664a 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -1411,15 +1411,15 @@ unsigned ISel::SelectExpr(SDOperand N) { if (GlobalAddressSDNode *GASD = dyn_cast<GlobalAddressSDNode>(N.getOperand(1))) { - //if (GASD->getGlobal()->isExternal()) { + if (GASD->getGlobal()->isExternal()) { //use safe calling convention AlphaLowering.restoreGP(BB); has_sym = true; - BuildMI(BB, Alpha::CALL, 1).addGlobalAddress(GASD->getGlobal(),true); - //} else { + BuildMI(BB, Alpha::CALL, 1).addGlobalAddress(GASD->getGlobal()); + } else { //use PC relative branch call - //BuildMI(BB, Alpha::BSR, 1, Alpha::R26).addGlobalAddress(GASD->getGlobal(),true); - //} + BuildMI(BB, Alpha::BSR, 1, Alpha::R26).addGlobalAddress(GASD->getGlobal(),true); + } } else if (ExternalSymbolSDNode *ESSDN = dyn_cast<ExternalSymbolSDNode>(N.getOperand(1))) |