[clang] [llvm] [X86] Add Support for X86 TLSDESC Relocations (PR #83136)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 27 06:23:15 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 5ec535b1bda4c87aac951e65cc5b65c910e92579 421a5e4c0a6d7beda71118a36650e72c3d6f2377 -- clang/lib/Driver/ToolChains/CommonArgs.cpp clang/test/Driver/tls-dialect.c llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h llvm/lib/Target/X86/X86AsmPrinter.cpp llvm/lib/Target/X86/X86ISelLowering.cpp llvm/lib/Target/X86/X86MCInstLower.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index d8e111db1c..a69c4bcb71 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -271,8 +271,12 @@ void X86AsmPrinter::PrintSymbolOperand(const MachineOperand &MO,
case X86II::MO_TLSGD: O << "@TLSGD"; break;
case X86II::MO_TLSLD: O << "@TLSLD"; break;
case X86II::MO_TLSLDM: O << "@TLSLDM"; break;
- case X86II::MO_TLSDESC: O << "@TLSDESC"; break;
- case X86II::MO_TLSCALL: O << "@TLSCALL"; break;
+ case X86II::MO_TLSDESC:
+ O << "@TLSDESC";
+ break;
+ case X86II::MO_TLSCALL:
+ O << "@TLSCALL";
+ break;
case X86II::MO_GOTTPOFF: O << "@GOTTPOFF"; break;
case X86II::MO_INDNTPOFF: O << "@INDNTPOFF"; break;
case X86II::MO_TPOFF: O << "@TPOFF"; break;
``````````
</details>
https://github.com/llvm/llvm-project/pull/83136
More information about the cfe-commits
mailing list