diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-08-26 22:36:50 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-08-26 22:36:50 +0000 |
commit | 46bf54702f3d06e26fcc6520ad347540696f263d (patch) | |
tree | 6bb72e831f77e338e8be827a61363847b91723b5 /utils | |
parent | 30eba3f242c82aac1d939288be0b1d81b3629692 (diff) | |
download | external_llvm-46bf54702f3d06e26fcc6520ad347540696f263d.zip external_llvm-46bf54702f3d06e26fcc6520ad347540696f263d.tar.gz external_llvm-46bf54702f3d06e26fcc6520ad347540696f263d.tar.bz2 |
disallow direct access to SDValue::ResNo, provide a getter instead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 12e8f85..9d8e0a6 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -1190,7 +1190,7 @@ public: ReplaceFroms.push_back("SDValue(N.Val, " + utostr(NumPatResults) + ")"); ReplaceTos.push_back("SDValue(" + ChainName + ".Val, " + - ChainName + ".ResNo" + ")"); + ChainName + ".getResNo()" + ")"); ChainAssignmentNeeded |= NodeHasChain; } @@ -1203,7 +1203,7 @@ public: ReplaceFroms.push_back("SDValue(N.Val, " + utostr(NumPatResults+1) + ")"); - ReplaceTos.push_back("SDValue(ResNode, N.ResNo-1)"); + ReplaceTos.push_back("SDValue(ResNode, N.getResNo()-1)"); } ReplaceFroms.push_back("SDValue(N.Val, " + utostr(NumPatResults) + ")"); |