summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmLexer.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-20 20:01:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-20 20:01:54 +0000
commit2b11c7de4ae182496438e166cb6758d41b6e1740 (patch)
tree83d536fbd7314bbda2949a2696eaf97851fb670b /llvm/tools/llvm-mc/AsmLexer.h
parent027d9f93ea2ead9c5e2976f0f5cd606073c9895e (diff)
downloadbcm5719-llvm-2b11c7de4ae182496438e166cb6758d41b6e1740.tar.gz
bcm5719-llvm-2b11c7de4ae182496438e166cb6758d41b6e1740.zip
Add MCAsmLexer interface.
- This provides the AsmLexer interface to the target specific assembly parsers. llvm-svn: 76460
Diffstat (limited to 'llvm/tools/llvm-mc/AsmLexer.h')
-rw-r--r--llvm/tools/llvm-mc/AsmLexer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/AsmLexer.h b/llvm/tools/llvm-mc/AsmLexer.h
index 5d59d0ad775..32bbb50e9fb 100644
--- a/llvm/tools/llvm-mc/AsmLexer.h
+++ b/llvm/tools/llvm-mc/AsmLexer.h
@@ -14,6 +14,7 @@
#ifndef ASMLEXER_H
#define ASMLEXER_H
+#include "llvm/MC/MCAsmLexer.h"
#include "llvm/Support/DataTypes.h"
#include <string>
#include <cassert>
@@ -52,7 +53,7 @@ namespace asmtok {
}
/// AsmLexer - Lexer class for assembly files.
-class AsmLexer {
+class AsmLexer : public MCAsmLexer {
SourceMgr &SrcMgr;
const char *CurPtr;
OpenPOWER on IntegriCloud