[Lldb-commits] [lldb] 14c6949 - Partially revert "[NFCI][lldb][test][asm] Enable AT&T syntax explicitly (#166770)" (#172233)

via lldb-commits lldb-commits at lists.llvm.org
Sun Dec 14 14:26:58 PST 2025


Author: Raul Tambre
Date: 2025-12-15T00:26:54+02:00
New Revision: 14c69497b31038b37c273417f43bd2cfe169c86f

URL: https://github.com/llvm/llvm-project/commit/14c69497b31038b37c273417f43bd2cfe169c86f
DIFF: https://github.com/llvm/llvm-project/commit/14c69497b31038b37c273417f43bd2cfe169c86f.diff

LOG: Partially revert "[NFCI][lldb][test][asm] Enable AT&T syntax explicitly (#166770)" (#172233)

Flag changes reverted as those require the X86 target to be enabled.  
Don't have time to test fixes as I need to go to sleep so will revert for now.

Reverts: 423919d31f4b55f22b09cd5066534f7c91e71d4b

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/make/Makefile.rules
    lldb/test/Shell/helper/toolchain.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
index 1b967219134d8..55dbd3934860f 100644
--- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
@@ -320,13 +320,6 @@ ifeq "$(MAKE_GMODULES)" "YES"
 	CXXFLAGS += $(MANDATORY_MODULE_BUILD_CFLAGS)
 endif
 
-# Our files use x86 AT&T assembly throughout.
-# Enable it explicitly so any local Clang preference for Intel syntax gets overriden.
-ifeq ($(CC_TYPE), clang)
-	CFLAGS += -mllvm -x86-asm-syntax=att
-	CXXFLAGS += -mllvm -x86-asm-syntax=att
-endif
-
 CFLAGS += $(CFLAGS_EXTRAS)
 CXXFLAGS += -std=c++11 $(CFLAGS) $(ARCH_CXXFLAGS)
 # Copy common options to the linker flags (dwarf, arch. & etc).

diff  --git a/lldb/test/Shell/helper/toolchain.py b/lldb/test/Shell/helper/toolchain.py
index dd8ca48b7d76e..0c8c39d37e089 100644
--- a/lldb/test/Shell/helper/toolchain.py
+++ b/lldb/test/Shell/helper/toolchain.py
@@ -242,10 +242,6 @@ def use_support_substitutions(config):
     # The clang module cache is used for building inferiors.
     host_flags += ["-fmodules-cache-path={}".format(config.clang_module_cache)]
 
-    # Our files use x86 AT&T assembly throughout.
-    # Enable it explicitly so any local Clang preference for Intel syntax gets overriden.
-    host_flags += ["-mllvm", "-x86-asm-syntax=att"]
-
     if config.cmake_sysroot:
         host_flags += ["--sysroot={}".format(config.cmake_sysroot)]
 


        


More information about the lldb-commits mailing list