[all-commits] [llvm/llvm-project] a8e582: [ThinLTO] Always parse module level inline asm wit...
Hans via All-commits
all-commits at lists.llvm.org
Wed Jul 1 00:51:32 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a8e582c8307ba1d33c05d272b5c1b755fa809b51
https://github.com/llvm/llvm-project/commit/a8e582c8307ba1d33c05d272b5c1b755fa809b51
Author: Hans Wennborg <hans at chromium.org>
Date: 2020-07-01 (Wed, 01 Jul 2020)
Changed paths:
A clang/test/CodeGen/thinlto-inline-asm.c
M llvm/lib/Object/ModuleSymbolTable.cpp
Log Message:
-----------
[ThinLTO] Always parse module level inline asm with At&t dialect (PR46503)
clang-cl passes -x86-asm-syntax=intel to the cc1 invocation so that
assembly listings produced by the /FA flag are printed in Intel dialect.
That flag however should not affect the *parsing* of inline assembly in
the program. (See r322652)
When compiling normally, AsmPrinter::emitInlineAsm is used for
assembling and defaults to At&t dialect. However, when compiling for
ThinLTO, the code which parses module level inline asm to find symbols
for the symbol table was failing to set the dialect. This patch fixes
that. (See the bug for more details.)
Differential revision: https://reviews.llvm.org/D82862
More information about the All-commits
mailing list