From: Eric Christopher Date: Fri, 26 Sep 2014 01:28:13 +0000 (+0000) Subject: Have setSubtarget take a const subtarget. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eea543fd16b17d5dbdf558c9064cdadd0afd6a93;p=oota-llvm.git Have setSubtarget take a const subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218490 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index ef77b6069fc..c00461e901f 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -168,7 +168,7 @@ public: /// getSubtarget - Return the subtarget for which this machine code is being /// compiled. const TargetSubtargetInfo &getSubtarget() const { return *STI; } - void setSubtarget(TargetSubtargetInfo *ST) { STI = ST; } + void setSubtarget(const TargetSubtargetInfo *ST) { STI = ST; } /// getRegInfo - Return information about the registers currently in use. ///