This is an archive of the discontinued LLVM Phabricator instance.

[aarch64] Fix the problem of using a "//" as comment start.
Needs ReviewPublic

Authored by tubafranz on Aug 13 2014, 7:14 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Hello folks out there,
here is my first patch to llvm. Bon appetit.

Franesco

The AsmLexer has been implemented with the assumption that the
CommentString defined as a const char * in MCAsmInfo.h should be
defined as a single char. In AArch64 CommentString is defined as "//",
so that even "/" was defined as comment start.

Regression tests has been introduced in test/MC/AsmParser/AsmLexer/,
and some of the darwin regression tests has been adapted to the "##"
CommentString.

Diff Detail

Event Timeline

tubafranz updated this revision to Diff 12445.Aug 13 2014, 7:14 AM
tubafranz retitled this revision from to [aarch64] Fix the problem of using a "//" as comment start..
tubafranz updated this object.
tubafranz edited the test plan for this revision. (Show Details)
tubafranz set the repository for this revision to rL LLVM.
tubafranz added a subscriber: Unknown Object (MLST).
jannau added a subscriber: jannau.Aug 13 2014, 1:44 PM

duplicates http://reviews.llvm.org/D4597

The changes to the darwin tests are actually wrong. A single '#' has to be recognized as comment for x86 darwin