aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/FastISelEmitter.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-07-29 22:43:06 +0000
committerDavid Greene <greened@obbligato.org>2011-07-29 22:43:06 +0000
commit05bce0beee87512e52428d4b80f5a8e79a949576 (patch)
treebe45c8abd8623ae055d6827e3054ad7411811663 /utils/TableGen/FastISelEmitter.cpp
parentc8f34de5d615b858319f33d4e19c24622d971416 (diff)
downloadexternal_llvm-05bce0beee87512e52428d4b80f5a8e79a949576.zip
external_llvm-05bce0beee87512e52428d4b80f5a8e79a949576.tar.gz
external_llvm-05bce0beee87512e52428d4b80f5a8e79a949576.tar.bz2
Unconstify Inits
Remove const qualifiers from Init references, per Chris' request. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FastISelEmitter.cpp')
-rw-r--r--utils/TableGen/FastISelEmitter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp
index 2a86b89..f54e8df 100644
--- a/utils/TableGen/FastISelEmitter.cpp
+++ b/utils/TableGen/FastISelEmitter.cpp
@@ -241,7 +241,7 @@ struct OperandsSignature {
if (Op->getType(0) != VT)
return false;
- const DefInit *OpDI = dynamic_cast<const DefInit*>(Op->getLeafValue());
+ DefInit *OpDI = dynamic_cast<DefInit*>(Op->getLeafValue());
if (!OpDI)
return false;
Record *OpLeafRec = OpDI->getDef();
@@ -401,12 +401,12 @@ static std::string PhyRegForNode(TreePatternNode *Op,
if (!Op->isLeaf())
return PhysReg;
- const DefInit *OpDI = dynamic_cast<const DefInit*>(Op->getLeafValue());
+ DefInit *OpDI = dynamic_cast<DefInit*>(Op->getLeafValue());
Record *OpLeafRec = OpDI->getDef();
if (!OpLeafRec->isSubClassOf("Register"))
return PhysReg;
- PhysReg += static_cast<const StringInit*>(OpLeafRec->getValue( \
+ PhysReg += static_cast<StringInit*>(OpLeafRec->getValue( \
"Namespace")->getValue())->getValue();
PhysReg += "::";
PhysReg += Target.getRegBank().getReg(OpLeafRec)->getName();
@@ -468,7 +468,7 @@ void FastISelMap::collectPatterns(CodeGenDAGPatterns &CGP) {
// a bit too complicated for now.
if (!Dst->getChild(1)->isLeaf()) continue;
- const DefInit *SR = dynamic_cast<const DefInit*>(Dst->getChild(1)->getLeafValue());
+ DefInit *SR = dynamic_cast<DefInit*>(Dst->getChild(1)->getLeafValue());
if (SR)
SubRegNo = getQualifiedName(SR->getDef());
else