[lld] [llvm] [LLVM][LTO] Factor out RTLib calls and allow them to be dropped (PR #98512)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 11:06:11 PDT 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 3f1a76757269d0770bdb7e8086656e61019002ec 2c74173f638967f2a66c0653f82e32953ace6f49 --extensions h,cpp -- lld/COFF/Driver.cpp lld/ELF/Driver.cpp lld/wasm/Driver.cpp llvm/include/llvm/CodeGen/TargetLowering.h llvm/include/llvm/LTO/LTO.h llvm/lib/CodeGen/TargetLoweringBase.cpp llvm/lib/LTO/LTO.cpp llvm/lib/Object/IRSymtab.cpp llvm/tools/lto/lto.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h
index 37809a9553..30eda34cd7 100644
--- a/llvm/include/llvm/LTO/LTO.h
+++ b/llvm/include/llvm/LTO/LTO.h
@@ -301,7 +301,7 @@ public:
/// Static method that returns a list of libcall symbols that can be generated
/// by LTO but might not be visible from bitcode symbol table.
- static SmallVector<const char*> getRuntimeLibcallSymbols(const Triple &TT);
+ static SmallVector<const char *> getRuntimeLibcallSymbols(const Triple &TT);
private:
Config Conf;
diff --git a/llvm/lib/Object/IRSymtab.cpp b/llvm/lib/Object/IRSymtab.cpp
index 8f0be1610d..4783a90b00 100644
--- a/llvm/lib/Object/IRSymtab.cpp
+++ b/llvm/lib/Object/IRSymtab.cpp
@@ -14,6 +14,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Bitcode/BitcodeReader.h"
+#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/Comdat.h"
#include "llvm/IR/DataLayout.h"
@@ -24,7 +25,6 @@
#include "llvm/IR/Module.h"
#include "llvm/MC/StringTableBuilder.h"
#include "llvm/Object/ModuleSymbolTable.h"
-#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/Object/SymbolicFile.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/98512
More information about the llvm-commits
mailing list