From: Rafael Espindola Date: Wed, 13 Oct 2010 14:53:57 +0000 (+0000) Subject: Call InitSections when assembling. This makes clang's output match that of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f036fad0481a1bc996763b3e7c1d2f0019607f4;p=clang Call InitSections when assembling. This makes clang's output match that of llvm-mc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116405 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 5bce70cb2a..288e110cf4 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -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 Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,