Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.72 -> 1.73 --- Log message: Fixed a bug introduced by my last commit: TargetGlobalValues should key on GlobalValue * and index pair. Update getGlobalAddress() for symmetry. --- Diffs of the changes: (+5 -4) SelectionDAG.h | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) Index: llvm/include/llvm/CodeGen/SelectionDAG.h diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.72 llvm/include/llvm/CodeGen/SelectionDAG.h:1.73 --- llvm/include/llvm/CodeGen/SelectionDAG.h:1.72 Tue Nov 29 20:04:11 2005 +++ llvm/include/llvm/CodeGen/SelectionDAG.h Tue Nov 29 20:49:21 2005 @@ -109,9 +109,10 @@ SDOperand getConstant(uint64_t Val, MVT::ValueType VT); SDOperand getTargetConstant(uint64_t Val, MVT::ValueType VT); SDOperand getConstantFP(double Val, MVT::ValueType VT); - SDOperand getGlobalAddress(const GlobalValue *GV, MVT::ValueType VT); + SDOperand getGlobalAddress(const GlobalValue *GV, MVT::ValueType VT, + int offset = 0); SDOperand getTargetGlobalAddress(const GlobalValue *GV, MVT::ValueType VT, - int offset=0); + int offset = 0); SDOperand getFrameIndex(int FI, MVT::ValueType VT); SDOperand getTargetFrameIndex(int FI, MVT::ValueType VT); SDOperand getConstantPool(Constant *C, MVT::ValueType VT); @@ -399,8 +400,8 @@ std::map<std::pair<SDOperand, std::pair<SDOperand, MVT::ValueType> >, SDNode *> Loads; - std::map<const GlobalValue*, SDNode*> GlobalValues; - std::map<const GlobalValue*, SDNode*> TargetGlobalValues; + std::map<std::pair<const GlobalValue*, int>, SDNode*> GlobalValues; + std::map<std::pair<const GlobalValue*, int>, SDNode*> TargetGlobalValues; std::map<std::pair<uint64_t, MVT::ValueType>, SDNode*> Constants; std::map<std::pair<uint64_t, MVT::ValueType>, SDNode*> TargetConstants; std::map<std::pair<uint64_t, MVT::ValueType>, SDNode*> ConstantFPs; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits