mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
#include <cctype>
|
||||
using namespace llvm;
|
||||
|
||||
@@ -2177,7 +2178,8 @@ getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
std::make_pair(0u, static_cast<const TargetRegisterClass*>(nullptr));
|
||||
|
||||
// Figure out which register class contains this reg.
|
||||
const TargetRegisterInfo *RI = getTargetMachine().getRegisterInfo();
|
||||
const TargetRegisterInfo *RI =
|
||||
getTargetMachine().getSubtargetImpl()->getRegisterInfo();
|
||||
for (TargetRegisterInfo::regclass_iterator RCI = RI->regclass_begin(),
|
||||
E = RI->regclass_end(); RCI != E; ++RCI) {
|
||||
const TargetRegisterClass *RC = *RCI;
|
||||
|
||||
Reference in New Issue
Block a user