diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-06 22:08:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-06 22:08:15 +0000 |
commit | 0d881dabc1a4e1aefad6dd38de166d8358285638 (patch) | |
tree | 886287ca04ed32ed2a0f1a1e1d28b4064ed749fb /lib/Target/Alpha | |
parent | f967ca0eaf30325cabe3c1971bf0dba16cf1b027 (diff) | |
download | external_llvm-0d881dabc1a4e1aefad6dd38de166d8358285638.zip external_llvm-0d881dabc1a4e1aefad6dd38de166d8358285638.tar.gz external_llvm-0d881dabc1a4e1aefad6dd38de166d8358285638.tar.bz2 |
Propagate debug loc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha')
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp index b16c24b..dc865dd 100644 --- a/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/lib/Target/Alpha/AlphaISelLowering.cpp @@ -643,10 +643,12 @@ SDValue AlphaTargetLowering::LowerOperation(SDValue Op, case ISD::GlobalAddress: { GlobalAddressSDNode *GSDN = cast<GlobalAddressSDNode>(Op); const GlobalValue *GV = GSDN->getGlobal(); - SDValue GA = DAG.getTargetGlobalAddress(GV, MVT::i64, GSDN->getOffset()); + SDValue GA = DAG.getTargetGlobalAddress(GV, dl, MVT::i64, + GSDN->getOffset()); // FIXME there isn't really any debug info here - // if (!GV->hasWeakLinkage() && !GV->isDeclaration() && !GV->hasLinkOnceLinkage()) { + // if (!GV->hasWeakLinkage() && !GV->isDeclaration() + // && !GV->hasLinkOnceLinkage()) { if (GV->hasLocalLinkage()) { SDValue Hi = DAG.getNode(AlphaISD::GPRelHi, dl, MVT::i64, GA, DAG.getGLOBAL_OFFSET_TABLE(MVT::i64)); |