From ec6f096c36f4144ff9b3b24c2939720cdcbb7bcc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 2 Nov 2010 18:10:06 +0000 Subject: a bunch of random cleanup, move a helper to CGT where it belongs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118031 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeGenTarget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/TableGen/CodeGenTarget.h') diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index 930747fc36..66cbce1a83 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -101,6 +101,10 @@ public: if (Registers.empty()) ReadRegisters(); return Registers; } + + /// getRegisterByName - If there is a register with the specific AsmName, + /// return it. + const CodeGenRegister *getRegisterByName(StringRef Name) const; const std::vector &getSubRegIndices() const { if (SubRegIndices.empty()) ReadSubRegIndices(); -- cgit v1.2.3-70-g09d2