[clang] [lld] [llvm] [llvm][lld][clang] Delay initializing TargetOptions in LTO builds until a Triple is available (PR #179509)

Alexander Richardson via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 12 05:54:57 PST 2026


================
@@ -43,50 +43,67 @@ static std::string getThinLTOOutputFile(Ctx &ctx, StringRef modulePath) {
                                    ctx.arg.thinLTOPrefixReplaceNew);
 }
 
+static std::shared_ptr<MemoryBuffer> getMemoryBuffer(Ctx &ctx) {
----------------
arichardson wrote:

```suggestion
static std::shared_ptr<MemoryBuffer> getBBSectionsMemoryBuffer(Ctx &ctx) {
```
Maybe rename this?

https://github.com/llvm/llvm-project/pull/179509


More information about the cfe-commits mailing list