summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmLexer.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-19 06:22:22 +0000
committerChris Lattner <sabre@nondot.org>2010-01-19 06:22:22 +0000
commitab9cd3e132a86f99c8784c6025c6f55bb5cf2612 (patch)
treed6117bdb1899a8b8d192169b0fb4096e6c8b4c66 /llvm/tools/llvm-mc/AsmLexer.h
parent795bfb72079709bf6913dec1cf5c1c456c5d1a02 (diff)
downloadbcm5719-llvm-ab9cd3e132a86f99c8784c6025c6f55bb5cf2612.tar.gz
bcm5719-llvm-ab9cd3e132a86f99c8784c6025c6f55bb5cf2612.zip
fix parsing .comm directives on systems which do not represent alignments
as a power of 2. This fixes MC/AsmParser/directive_comm.s llvm-svn: 93867
Diffstat (limited to 'llvm/tools/llvm-mc/AsmLexer.h')
-rw-r--r--llvm/tools/llvm-mc/AsmLexer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/AsmLexer.h b/llvm/tools/llvm-mc/AsmLexer.h
index ce292f66b12..c0b32232abb 100644
--- a/llvm/tools/llvm-mc/AsmLexer.h
+++ b/llvm/tools/llvm-mc/AsmLexer.h
@@ -62,7 +62,9 @@ public:
bool EnterIncludeFile(const std::string &Filename);
void PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type) const;
-
+
+ const MCAsmInfo &getMAI() const { return MAI; }
+
private:
int getNextChar();
AsmToken ReturnError(const char *Loc, const std::string &Msg);
OpenPOWER on IntegriCloud