diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-26 02:03:48 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-26 02:03:48 +0000 |
| commit | 31aafbd5013ca93e4ae8f8eeff7ed83eb29239df (patch) | |
| tree | 37e375f19da6860085078b75f3c757ed8f5d847a /llvm/utils/TableGen/CodeGenInstruction.cpp | |
| parent | 9d29eff19874a506c2290c239209d524c84ff0ab (diff) | |
| download | bcm5719-llvm-31aafbd5013ca93e4ae8f8eeff7ed83eb29239df.tar.gz bcm5719-llvm-31aafbd5013ca93e4ae8f8eeff7ed83eb29239df.zip | |
TableGen: PointerLikeRegClass can be accepted to operand.
llvm-svn: 124271
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index e6e081f2d6b..d69a44bc293 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/utils/TableGen/CodeGenInstruction.cpp @@ -94,7 +94,8 @@ CGIOperandList::CGIOperandList(Record *R) : TheDef(R) { isVariadic = true; continue; } else if (!Rec->isSubClassOf("RegisterClass") && - Rec->getName() != "ptr_rc" && Rec->getName() != "unknown") + !Rec->isSubClassOf("PointerLikeRegClass") && + Rec->getName() != "unknown") throw "Unknown operand class '" + Rec->getName() + "' in '" + R->getName() + "' instruction!"; |

