summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-01-23 00:40:33 +0000
committerSean Callanan <scallanan@apple.com>2010-01-23 00:40:33 +0000
commite9b466d4f09de3b46c0d0d1e71cabddc7cc9021b (patch)
tree26a471cbeb0ff7ccba02e6a91557d98d31d39479 /lib/Target
parent2e369930dc9e36728f7953a238d63925d3660612 (diff)
downloadllvm-e9b466d4f09de3b46c0d0d1e71cabddc7cc9021b.tar.gz
llvm-e9b466d4f09de3b46c0d0d1e71cabddc7cc9021b.tar.bz2
llvm-e9b466d4f09de3b46c0d0d1e71cabddc7cc9021b.tar.xz
Modified the register matcher function in AsmMatcher to
be static. Also made it possible for clients to get it and no other functions from ...GenAsmMatcher.inc by defining REGISTERS_ONLY before including GenAsmMatcher.inc. This sets the stage for target-specific lexers that can identify registers and return AsmToken::Register as appropriate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/AsmParser/X86AsmParser.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 6ced1f4f15..a367189028 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -50,10 +50,6 @@ private:
bool MatchInstruction(const SmallVectorImpl<MCParsedAsmOperand*> &Operands,
MCInst &Inst);
- /// MatchRegisterName - Match the given string to a register name, or 0 if
- /// there is no match.
- unsigned MatchRegisterName(const StringRef &Name);
-
/// }
public:
@@ -68,6 +64,12 @@ public:
} // end anonymous namespace
+/// @name Auto-generated Match Functions
+/// {
+
+static unsigned MatchRegisterName(const StringRef &Name);
+
+/// }
namespace {