diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-13 14:53:57 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-13 14:53:57 +0000 |
commit | 4f036fad0481a1bc996763b3e7c1d2f0019607f4 (patch) | |
tree | 472080864fe32a83bdad3134d647625f69239442 /tools/driver | |
parent | 380aaa44213c7ddff95117a30d5c6cec05a911d5 (diff) |
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
Diffstat (limited to 'tools/driver')
-rw-r--r-- | tools/driver/cc1as_main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx, |