Add MCAsmParser interface.

- This provides the AsmParser interface to the target specific assembly
   parsers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76453 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-07-20 18:55:04 +00:00
parent 4d20c24fe6
commit a3af370dc1
8 changed files with 93 additions and 6 deletions

View File

@@ -186,9 +186,10 @@ static int AssembleInput(const char *ProgName) {
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"));
Str.get()->SwitchSection(Ctx.GetSection("__TEXT,__text,"
"regular,pure_instructions"));
AsmParser Parser(SrcMgr, Ctx, *Str.get());
AsmParser Parser(SrcMgr, Ctx, *Str.get(), *TAP);
return Parser.Run();
}