[llvm] [SystemZ] Use proper relocation for TLS variable debug info (PR #83975)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 00:53:54 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 ff66e9b7e2fad71d1c65e884d6f94fb6ea5bdc21 8d824b5740778d6781705eda3d33196b1fc06c89 -- llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp llvm/lib/Target/SystemZ/SystemZTargetObjectFile.h llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp b/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp
index 14ab59d278..4e7e4c8b8c 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp
@@ -17,4 +17,3 @@ const MCExpr *SystemZELFTargetObjectFile::getDebugThreadLocalSymbol(
const MCSymbol *Sym) const {
return MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext());
}
-
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.h b/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.h
index b840e14f44..9d0adbb81d 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.h
+++ b/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.h
@@ -13,14 +13,14 @@
namespace llvm {
- /// This implementation is used for SystemZ ELF targets.
- class SystemZELFTargetObjectFile : public TargetLoweringObjectFileELF {
- public:
- SystemZELFTargetObjectFile() { }
+/// This implementation is used for SystemZ ELF targets.
+class SystemZELFTargetObjectFile : public TargetLoweringObjectFileELF {
+public:
+ SystemZELFTargetObjectFile() {}
- /// Describe a TLS variable address within debug info.
- const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
- };
+ /// Describe a TLS variable address within debug info.
+ const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
+};
} // end namespace llvm
``````````
</details>
https://github.com/llvm/llvm-project/pull/83975
More information about the llvm-commits
mailing list