[llvm] [llvm] Move data layout string computation to TargetParser (PR #157612)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 22:48:07 PDT 2025
================
@@ -0,0 +1,631 @@
+//===--- TargetDataLayout.cpp - Map Triple to LLVM data layout string -----===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/TargetParser/ARMTargetParser.h"
+#include "llvm/TargetParser/Triple.h"
+#include <cstring>
+using namespace llvm;
+
+static const char *getManglingComponent(const Triple &T) {
----------------
arsenm wrote:
```suggestion
static StringRef getManglingComponent(const Triple &T) {
```
https://github.com/llvm/llvm-project/pull/157612
More information about the llvm-commits
mailing list