Call InitSections when assembling. This makes clang's output match that of

llvm-mc.

llvm-svn: 116405
This commit is contained in:
Rafael Espindola 2010-10-13 14:53:57 +00:00
parent e79d71e2e3
commit 85111907bb
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
TargetAsmBackend *TAB = TheTarget->createAsmBackend(Opts.Triple);
Str.reset(TheTarget->createObjectStreamer(Opts.Triple, Ctx, *TAB, *Out,
CE, Opts.RelaxAll));
Str.get()->InitSections();
}
OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,