Add const qualifiers to CodeGen's use of LLVM IR constructs.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / TargetLowering.cpp
index ea2ff2f3689184f553779987d83ff2bcb8c55886..df923c6a707f8fee6313f4d06764dce695a8987e 100644 (file)
@@ -2245,7 +2245,7 @@ TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
 
 /// isGAPlusOffset - Returns true (and the GlobalValue and the offset) if the
 /// node is a GlobalAddress + offset.
-bool TargetLowering::isGAPlusOffset(SDNode *N, GlobalValue* &GA,
+bool TargetLowering::isGAPlusOffset(SDNode *N, const GlobalValue* &GA,
                                     int64_t &Offset) const {
   if (isa<GlobalAddressSDNode>(N)) {
     GlobalAddressSDNode *GASD = cast<GlobalAddressSDNode>(N);