summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-30 22:18:51 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-30 22:18:51 +0000
commit1352be2bd3249fcb0225ff41939973078756aff2 (patch)
tree63edacbefc64a6d45dddb12586b53bab4a2d40dc /llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
parentb15fad9df4e813b22c6f538670ced462f62c7748 (diff)
downloadbcm5719-llvm-1352be2bd3249fcb0225ff41939973078756aff2.tar.gz
bcm5719-llvm-1352be2bd3249fcb0225ff41939973078756aff2.zip
Move getCommonSubClass() into TRI.
It will soon need the context. llvm-svn: 140896
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index b0239e13b2e..d547c962c2d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -113,7 +113,8 @@ EmitCopyFromReg(SDNode *Node, unsigned ResNo, bool IsClone, bool IsCloned,
if (!UseRC)
UseRC = RC;
else if (RC) {
- const TargetRegisterClass *ComRC = getCommonSubClass(UseRC, RC);
+ const TargetRegisterClass *ComRC =
+ TRI->getCommonSubClass(UseRC, RC);
// If multiple uses expect disjoint register classes, we emit
// copies in AddRegisterOperand.
if (ComRC)
OpenPOWER on IntegriCloud