[llvm] r218490 - Have setSubtarget take a const subtarget.
Eric Christopher
echristo at gmail.com
Thu Sep 25 18:28:13 PDT 2014
Author: echristo
Date: Thu Sep 25 20:28:13 2014
New Revision: 218490
URL: http://llvm.org/viewvc/llvm-project?rev=218490&view=rev
Log:
Have setSubtarget take a const subtarget.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineFunction.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineFunction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFunction.h?rev=218490&r1=218489&r2=218490&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFunction.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFunction.h Thu Sep 25 20:28:13 2014
@@ -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.
///
More information about the llvm-commits
mailing list