1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Have setSubtarget take a const subtarget.

llvm-svn: 218490
This commit is contained in:
Eric Christopher 2014-09-26 01:28:13 +00:00
parent 3b65e1ff31
commit 74f3138425

View File

@ -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.
///