projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo
[oota-llvm.git]
/
lib
/
CodeGen
/
VirtRegMap.cpp
diff --git
a/lib/CodeGen/VirtRegMap.cpp
b/lib/CodeGen/VirtRegMap.cpp
index 704736f079455ee28a34e32d1781d5e3ed784b37..f5258c34041729e5aa3d25d5dbe56f5080e92aa2 100644
(file)
--- a/
lib/CodeGen/VirtRegMap.cpp
+++ b/
lib/CodeGen/VirtRegMap.cpp
@@
-36,6
+36,7
@@
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegisterInfo.h"
+#include "llvm/Target/TargetSubtargetInfo.h"
#include <algorithm>
using namespace llvm;
#include <algorithm>
using namespace llvm;
@@
-54,8
+55,8
@@
INITIALIZE_PASS(VirtRegMap, "virtregmap", "Virtual Register Map", false, false)
bool VirtRegMap::runOnMachineFunction(MachineFunction &mf) {
MRI = &mf.getRegInfo();
bool VirtRegMap::runOnMachineFunction(MachineFunction &mf) {
MRI = &mf.getRegInfo();
- TII = mf.get
T
arget().getInstrInfo();
- TRI = mf.get
T
arget().getRegisterInfo();
+ TII = mf.get
Subt
arget().getInstrInfo();
+ TRI = mf.get
Subt
arget().getRegisterInfo();
MF = &mf;
Virt2PhysMap.clear();
MF = &mf;
Virt2PhysMap.clear();
@@
-205,8
+206,8
@@
void VirtRegRewriter::getAnalysisUsage(AnalysisUsage &AU) const {
bool VirtRegRewriter::runOnMachineFunction(MachineFunction &fn) {
MF = &fn;
TM = &MF->getTarget();
bool VirtRegRewriter::runOnMachineFunction(MachineFunction &fn) {
MF = &fn;
TM = &MF->getTarget();
- TRI =
TM->
getRegisterInfo();
- TII =
TM->
getInstrInfo();
+ TRI =
MF->getSubtarget().
getRegisterInfo();
+ TII =
MF->getSubtarget().
getInstrInfo();
MRI = &MF->getRegInfo();
Indexes = &getAnalysis<SlotIndexes>();
LIS = &getAnalysis<LiveIntervals>();
MRI = &MF->getRegInfo();
Indexes = &getAnalysis<SlotIndexes>();
LIS = &getAnalysis<LiveIntervals>();