From eea543fd16b17d5dbdf558c9064cdadd0afd6a93 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 26 Sep 2014 01:28:13 +0000 Subject: [PATCH] Have setSubtarget take a const subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218490 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. /// -- 2.34.1