Basic .s parsing for .asci[iz], .fill, .space, {.byte, .short, ... }

- Includes some DG tests in test/MC/AsmParser, which are rather primitive since
   we don't have a -verify mode yet.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-06-24 23:30:00 +00:00
parent 023dd3fb0b
commit a0d1426af0
8 changed files with 228 additions and 1 deletions

View File

@ -141,6 +141,10 @@ static int AssembleInput(const char *ProgName) {
MCContext Ctx;
OwningPtr<MCStreamer> Str(createAsmStreamer(Ctx, outs()));
// FIXME: Target hook & command line option for initial section.
Str.get()->SwitchSection(Ctx.GetSection("__TEXT,__text,regular,pure_instructions"));
AsmParser Parser(SrcMgr, Ctx, *Str.get());
return Parser.Run();
}